Kong/insomnia · error · InsoError
Expected single ${entity} in the data store, but found multi
Error message
Expected single ${entity} in the data store, but found multiple (${items.length}). What it means
Error "Expected single ${entity} in the data store, but found multiple (${items.length})." thrown in Kong/insomnia.
Source
Thrown at packages/insomnia-inso/src/db/models/util.ts:51
return items[0];
}
if (items.length === 0) {
return null;
}
throw new InsoError(`Expected single or no ${entity} in the data store, but found multiple (${items.length}).`);
};
export const ensureSingle = <T>(items: T[], entity: string): T => {
if (items.length === 1) {
return items[0];
}
if (items.length === 0) {
throw new InsoError(`Expected single ${entity} in the data store, but found none.`);
}
throw new InsoError(`Expected single ${entity} in the data store, but found multiple (${items.length}).`);
};
View on GitHub (pinned to d9bb2b0142)
When it happens
Trigger: Thrown at packages/insomnia-inso/src/db/models/util.ts:51 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/22e5ab501a39aedf.
Report an issue: GitHub.