{"record":{"id":"0599d3c456203482","repo":"getsops/sops","slug":"failed-to-parse-input-unknown-recipient-type-q","errorCode":null,"errorMessage":"failed to parse input, unknown recipient type: %q","messagePattern":"failed to parse input, unknown recipient type: %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"age/keysource.go","lineNumber":519,"sourceCode":"\t\t\treturn nil, fmt.Errorf(\"failed to parse input as age key from age plugin: %w\", err)\n\t\t}\n\t\treturn parsedRecipient, nil\n\tcase strings.HasPrefix(recipient, \"age1\"):\n\t\tparsedRecipient, err := age.ParseX25519Recipient(recipient)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to parse input as Bech32-encoded age public key: %w\", err)\n\t\t}\n\n\t\treturn parsedRecipient, nil\n\tcase strings.HasPrefix(recipient, \"ssh-\"):\n\t\tparsedRecipient, err := agessh.ParseRecipient(recipient)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to parse input as age-ssh public key: %w\", err)\n\t\t}\n\t\treturn parsedRecipient, nil\n\t}\n\n\treturn nil, fmt.Errorf(\"failed to parse input, unknown recipient type: %q\", recipient)\n}\n\n// parseIdentities attempts to parse one or more age identities from the provided reader.\n// One identity per line.\n// Empty lines and lines starting with \"#\" are ignored.\n// If allowMultipleKeysPerLine is true, every non-empty lines is split by words,\n// and every word is parsed as an identity.\nfunc parseIdentities(r io.Reader, allowMultipleKeysPerLine bool) (ParsedIdentities, error) {\n\tvar identities ParsedIdentities\n\n\tscanner := bufio.NewScanner(r)\n\n\tfor scanner.Scan() {\n\t\tline := scanner.Text()\n\n\t\tif line == \"\" || strings.HasPrefix(line, \"#\") {\n\t\t\tcontinue\n\t\t}","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/getsops/sops/blob/13442bb98183887d7a9ac09ec8ab0564673a59d8/age/keysource.go#L501-L537","documentation":"Error \"failed to parse input, unknown recipient type: %q\" thrown in getsops/sops.","triggerScenarios":"Thrown at age/keysource.go:519 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13442bb98183887d7a9ac09ec8ab0564673a59d8","analyzedAt":"2026-09-01T03:53:00.447Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}