{"record":{"id":"8c003ada10212296","repo":"usebruno/bruno","slug":"failed-to-parse-file-content","errorCode":null,"errorMessage":"Failed to parse file content","messagePattern":"Failed to parse file content","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js","lineNumber":148,"sourceCode":"        // Pass raw filesData to be processed in BulkImportCollectionLocation\n        handleSubmit({ filesData, type: 'multiple' });\n      } else {\n        throw new Error('No valid collections found in the selected files');\n      }\n    } catch (err) {\n      toastError(err, 'Import multiple files failed');\n    } finally {\n      setIsLoading(false);\n    }\n  };\n\n  const processFile = async (file) => {\n    setIsLoading(true);\n    try {\n      const data = await convertFileToObject(file);\n\n      if (!data) {\n        throw new Error('Failed to parse file content');\n      }\n\n      let type = null;\n\n      if (isOpenApiSpec(data)) {\n        type = 'openapi';\n      } else if (isWSDLCollection(data)) {\n        type = 'wsdl';\n      } else if (isPostmanCollection(data)) {\n        type = 'postman';\n      } else if (isInsomniaCollection(data)) {\n        type = 'insomnia';\n      } else if (isOpenCollection(data)) {\n        type = 'opencollection';\n      } else if (isBrunoCollection(data)) {\n        type = 'bruno';\n      } else {\n        throw new Error('Unsupported collection format');","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js#L130-L166","documentation":"Error \"Failed to parse file content\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the file encoding is UTF-8 and content is well-formed.","Try re-saving the file and importing again."],"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"}