{"record":{"id":"632552f342c54992","repo":"Kong/insomnia","slug":"expected-an-insomnia-v4-export-file-unexpected-da","errorCode":null,"errorMessage":"Expected an Insomnia v4 export file; unexpected data found in ${fileName}.","messagePattern":"Expected an Insomnia v4 export file; unexpected data found in (.+?)\\.","errorType":"exception","errorClass":"InsoError","httpStatus":null,"severity":"error","filePath":"packages/insomnia-inso/src/db/adapters/insomnia-adapter.ts","lineNumber":111,"sourceCode":"      const insomnia5Import = importInsomniaV5Data(content);\n\n      if (insomnia5Import.length > 0) {\n        parsed = {\n          __export_format: 5,\n          // @ts-expect-error -- TSCONVERSION\n          resources: insomnia5Import,\n        };\n      }\n    }\n  } catch (error) {\n    throw new InsoError(`Failed to parse ${fileName}.`, error);\n  }\n\n  // We are supporting only v4 and v5 files\n  if (!parsed) {\n    throw new InsoError(`Failed to parse ${fileName}.`);\n  } else if (!parsed.__export_format) {\n    throw new InsoError(`Expected an Insomnia v4 export file; unexpected data found in ${fileName}.`);\n  } else if (parsed.__export_format !== 4 && parsed.__export_format !== 5) {\n    throw new InsoError(\n      `Expected an Insomnia v4 export file; found an Insomnia v${parsed.__export_format} export file in ${fileName}.`,\n    );\n  }\n\n  // Transform filter to a set for faster search\n  // If it is undefined, it will return an empty set\n  const toFilter = new Set<string>(filterTypes);\n\n  // Execute translation between raw and imported models\n  parsed.resources.forEach(model => {\n    // If there is no filter to apply, or this model is included in the filter\n    if (!toFilter.size || toFilter.has(parseRawType(model._type))) {\n      // Rename field, transform value and return a new object\n      const obj = parseRaw(model);\n\n      // Store it, only if the key value exists","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-inso/src/db/adapters/insomnia-adapter.ts#L93-L129","documentation":"Error \"Expected an Insomnia v4 export file; unexpected data found in ${fileName}.\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-inso/src/db/adapters/insomnia-adapter.ts:111 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"}