{"record":{"id":"cf3c6b86fcf286f8","repo":"Kong/insomnia","slug":"extract-failed","errorCode":null,"errorMessage":"Extract failed","messagePattern":"Extract failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/common/import.ts","lineNumber":114,"sourceCode":"    return getRuntime().importer.insecureReadFile(path);\n  }\n  // Treat everything else as raw text\n  const content = decodeURIComponent(uri);\n\n  return content;\n}\n\nexport interface PostmanDataDumpRawData {\n  collectionList: ImportEntry[];\n  envList: ImportEntry[];\n}\n\nexport async function getFilesFromPostmanExportedDataDump(filePath: string): Promise<PostmanDataDumpRawData> {\n  let res;\n  try {\n    res = await getRuntime().importer.extractJsonFileFromPostmanDataDumpArchive(filePath);\n  } catch {\n    throw new Error('Extract failed');\n  }\n  if (res && res.data) {\n    return res.data;\n  } else if (res?.err) {\n    throw new Error(res.err);\n  } else {\n    throw new Error('Extract failed');\n  }\n}\n\nexport interface ScanResult {\n  requests?: (Request | WebSocketRequest | GrpcRequest | SocketIORequest)[];\n  workspaces?: Workspace[];\n  environments?: Environment[];\n  apiSpecs?: ApiSpec[];\n  cookieJars?: CookieJar[];\n  unitTests?: UnitTest[];\n  unitTestSuites?: UnitTestSuite[];","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/common/import.ts#L96-L132","documentation":"Error \"Extract failed\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/common/import.ts:114 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":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}