Kong/insomnia · error · InsoError
Failed to parse ${fileName}.
Error message
Failed to parse ${fileName}. What it means
Error "Failed to parse ${fileName}." thrown in Kong/insomnia.
Source
Thrown at packages/insomnia-inso/src/db/adapters/insomnia-adapter.ts:104
}
| undefined;
try {
parsed = YAML.parse(content);
if (!parsed?.__export_format) {
const insomnia5Import = importInsomniaV5Data(content);
if (insomnia5Import.length > 0) {
parsed = {
__export_format: 5,
// @ts-expect-error -- TSCONVERSION
resources: insomnia5Import,
};
}
}
} catch (error) {
throw new InsoError(`Failed to parse ${fileName}.`, error);
}
// We are supporting only v4 and v5 files
if (!parsed) {
throw new InsoError(`Failed to parse ${fileName}.`);
} else if (!parsed.__export_format) {
throw new InsoError(`Expected an Insomnia v4 export file; unexpected data found in ${fileName}.`);
} else if (parsed.__export_format !== 4 && parsed.__export_format !== 5) {
throw new InsoError(
`Expected an Insomnia v4 export file; found an Insomnia v${parsed.__export_format} export file in ${fileName}.`,
);
}
// Transform filter to a set for faster search
// If it is undefined, it will return an empty set
const toFilter = new Set<string>(filterTypes);
// Execute translation between raw and imported modelsView on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia-inso/src/db/adapters/insomnia-adapter.ts:104 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/eb269bf9abc10fe8.
Report an issue: GitHub.