{"record":{"id":"6c5dd51daa2f4a7f","repo":"ipfs/kubo","slug":"unrecognized-archive-type-s","errorCode":null,"errorMessage":"unrecognized archive type: %s","messagePattern":"unrecognized archive type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"repo/fsrepo/migrations/unpack.go","lineNumber":21,"sourceCode":"import (\n\t\"archive/tar\"\n\t\"archive/zip\"\n\t\"compress/gzip\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"os\"\n)\n\nfunc unpackArchive(arcPath, atype, root, name, out string) error {\n\tvar err error\n\tswitch atype {\n\tcase \"tar.gz\":\n\t\terr = unpackTgz(arcPath, root, name, out)\n\tcase \"zip\":\n\t\terr = unpackZip(arcPath, root, name, out)\n\tdefault:\n\t\terr = fmt.Errorf(\"unrecognized archive type: %s\", atype)\n\t}\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}\n\nfunc unpackTgz(arcPath, root, name, out string) error {\n\tfi, err := os.Open(arcPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"cannot open archive file: %w\", err)\n\t}\n\tdefer fi.Close()\n\n\tgzr, err := gzip.NewReader(fi)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error opening gzip reader: %w\", err)\n\t}","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/repo/fsrepo/migrations/unpack.go#L3-L39","documentation":"Fired by unpackArchive in the repo migration tooling when the archive type argument is neither \"tar.gz\" nor \"zip\". It is a validation guard over the migration download's archive type; an unexpected value means an unsupported/unknown distribution archive format.","triggerScenarios":"Thrown at repo/fsrepo/migrations/unpack.go:21 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an archive of type tar.gz or zip","Check for typos if the type came from a URL or config","Re-download the asset from the official source in a supported format"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}