usebruno/bruno · error · Error
Failed to parse file content
Error message
Failed to parse file content
What it means
Error "Failed to parse file content" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:148
// Pass raw filesData to be processed in BulkImportCollectionLocation
handleSubmit({ filesData, type: 'multiple' });
} else {
throw new Error('No valid collections found in the selected files');
}
} catch (err) {
toastError(err, 'Import multiple files failed');
} finally {
setIsLoading(false);
}
};
const processFile = async (file) => {
setIsLoading(true);
try {
const data = await convertFileToObject(file);
if (!data) {
throw new Error('Failed to parse file content');
}
let type = null;
if (isOpenApiSpec(data)) {
type = 'openapi';
} else if (isWSDLCollection(data)) {
type = 'wsdl';
} else if (isPostmanCollection(data)) {
type = 'postman';
} else if (isInsomniaCollection(data)) {
type = 'insomnia';
} else if (isOpenCollection(data)) {
type = 'opencollection';
} else if (isBrunoCollection(data)) {
type = 'bruno';
} else {
throw new Error('Unsupported collection format');View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Check the file encoding is UTF-8 and content is well-formed.
- Try re-saving the file and importing again.
When it happens
Trigger: Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/8c003ada10212296.
Report an issue: GitHub.