usebruno/bruno · error · Error

An error occurred while parsing the Insomnia collection: ${e

Error message

An error occurred while parsing the Insomnia collection: ${err.message}

What it means

Error "An error occurred while parsing the Insomnia collection: ${err.message}" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:299

          name,
          type: 'folder',
          items: createFolderStructure(resources, folder._id).concat(
            requests.filter((r) => r.parentId === folder._id).map(transformInsomniaRequestItem)
          )
        };
      });

      return folders.concat(requests.map(transformInsomniaRequestItem));
    }

    brunoCollection.items = createFolderStructure(requestsAndFolders, insomniaCollection._id);

    // Build environments from resources
    brunoCollection.environments = buildV4Environments(insomniaResources, insomniaCollection._id);
    return brunoCollection;
  } catch (err) {
    console.error('Error parsing collection:', err);
    throw new Error('An error occurred while parsing the Insomnia collection: ' + err.message);
  }
};

export const insomniaToBruno = (insomniaCollection) => {
  try {
    if (typeof insomniaCollection !== 'object') {
      insomniaCollection = jsyaml.load(insomniaCollection, { schema: jsyaml.JSON_SCHEMA });
    }
    let collection;
    if (isInsomniaV5Export(insomniaCollection)) {
      collection = parseInsomniaV5Collection(insomniaCollection);
    } else {
      collection = parseInsomniaCollection(insomniaCollection);
    }

    const transformedCollection = transformItemsInCollection(collection);
    const hydratedCollection = hydrateSeqInCollection(transformedCollection);
    const validatedCollection = validateSchema(hydratedCollection);

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Review the reported error and validate the Insomnia export JSON.
  2. Re-export from Insomnia in the supported format and retry.

When it happens

Trigger: Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:299 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/aa5774319c84c754. Report an issue: GitHub.