{"record":{"id":"fe88778692079b22","repo":"usebruno/bruno","slug":"an-error-occurred-while-parsing-the-insomnia-v5-co","errorCode":null,"errorMessage":"An error occurred while parsing the Insomnia v5 collection: ${err.message}","messagePattern":"An error occurred while parsing the Insomnia v5 collection: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-converters/src/insomnia/insomnia-to-bruno.js","lineNumber":241,"sourceCode":"          };\n        }\n        return null;\n      }).filter(Boolean);\n    };\n\n    if (data.collection && Array.isArray(data.collection)) {\n      brunoCollection.items = parseCollectionItems(data.collection, data.collection);\n    }\n\n    // Parse environments if available\n    if (data.environments) {\n      brunoCollection.environments = buildV5Environments(data.environments);\n    }\n\n    return brunoCollection;\n  } catch (err) {\n    console.error('Error parsing collection:', err);\n    throw new Error('An error occurred while parsing the Insomnia v5 collection: ' + err.message);\n  }\n};\n\nconst parseInsomniaCollection = (data) => {\n  const brunoCollection = {\n    name: '',\n    uid: uuid(),\n    version: '1',\n    items: [],\n    environments: []\n  };\n\n  try {\n    const insomniaResources = get(data, 'resources', []);\n    const insomniaCollection = insomniaResources.find((resource) => resource._type === 'workspace');\n\n    if (!insomniaCollection) {\n      throw new Error('Collection not found inside Insomnia export');","sourceCodeStart":223,"sourceCodeEnd":259,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-converters/src/insomnia/insomnia-to-bruno.js#L223-L259","documentation":"Error \"An error occurred while parsing the Insomnia v5 collection: ${err.message}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:241 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the reported parse error and fix the Insomnia v5 export content.","Re-export the collection from Insomnia and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}