{"record":{"id":"b988a6a4bb326cd5","repo":"usebruno/bruno","slug":"import-collection-failed-err-message-b988a6","errorCode":null,"errorMessage":"Import collection failed: ${err.message}","messagePattern":"Import collection failed: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-converters/src/insomnia/insomnia-to-bruno.js","lineNumber":321,"sourceCode":"export const insomniaToBruno = (insomniaCollection) => {\n  try {\n    if (typeof insomniaCollection !== 'object') {\n      insomniaCollection = jsyaml.load(insomniaCollection, { schema: jsyaml.JSON_SCHEMA });\n    }\n    let collection;\n    if (isInsomniaV5Export(insomniaCollection)) {\n      collection = parseInsomniaV5Collection(insomniaCollection);\n    } else {\n      collection = parseInsomniaCollection(insomniaCollection);\n    }\n\n    const transformedCollection = transformItemsInCollection(collection);\n    const hydratedCollection = hydrateSeqInCollection(transformedCollection);\n    const validatedCollection = validateSchema(hydratedCollection);\n    return validatedCollection;\n  } catch (err) {\n    console.error(err);\n    throw new Error('Import collection failed: ' + err.message);\n  }\n};\n\nexport default insomniaToBruno;\n","sourceCodeStart":303,"sourceCodeEnd":326,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-converters/src/insomnia/insomnia-to-bruno.js#L303-L326","documentation":"Error \"Import collection failed: ${err.message}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:321 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the underlying error message for the specific failure.","Validate the source collection file and retry the import."],"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"}