usebruno/bruno · error · Error
Collection not found inside Insomnia export
Error message
Collection not found inside Insomnia export
What it means
Error "Collection not found inside Insomnia export" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:259
throw new Error('An error occurred while parsing the Insomnia v5 collection: ' + err.message);
}
};
const parseInsomniaCollection = (data) => {
const brunoCollection = {
name: '',
uid: uuid(),
version: '1',
items: [],
environments: []
};
try {
const insomniaResources = get(data, 'resources', []);
const insomniaCollection = insomniaResources.find((resource) => resource._type === 'workspace');
if (!insomniaCollection) {
throw new Error('Collection not found inside Insomnia export');
}
brunoCollection.name = insomniaCollection.name;
const requestsAndFolders
= insomniaResources.filter((resource) => resource._type === 'request' || resource._type === 'request_group')
|| [];
function createFolderStructure(resources, parentId = null) {
const requestGroups
= resources.filter((resource) => resource._type === 'request_group' && resource.parentId === parentId) || [];
const requests = resources.filter((resource) => resource._type === 'request' && resource.parentId === parentId);
const folders = requestGroups.map((folder, index, allFolder) => {
const name = addSuffixToDuplicateName(folder, index, allFolder);
const requests = resources.filter(
(resource) => resource._type === 'request' && resource.parentId === folder._id
);View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Export a workspace/collection (not only a request or environment) from Insomnia.
- Verify the export file contains a collection resource.
When it happens
Trigger: Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:259 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/457ff5eb31ce7ded.
Report an issue: GitHub.