usebruno/bruno · error · Error
Unsupported item type: ${item.type}
Error message
Unsupported item type: ${item.type} What it means
Error "Unsupported item type: ${item.type}" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-cli/src/utils/collection.js:663
url: item.request?.url || '',
headers: item.request?.headers || [],
params: item.request?.params || [],
auth: item.request?.auth || {},
body: item.request?.body || {},
script: item.request?.script || {},
vars: item.request?.vars || { req: [], res: [] },
assertions: item.request?.assertions || [],
tests: item.request?.tests || '',
docs: item.request?.docs || ''
},
examples: item.examples || []
};
// Convert to YML format and write to file
const content = stringifyRequest(itemJson, { format });
safeWriteFileSync(path.join(currentPath, sanitizedFilename), content);
} else {
throw new Error(`Unsupported item type: ${item.type}`);
}
}
};
const sortByNameThenSequence = (items) => {
const isSeqValid = (seq) => Number.isFinite(seq) && Number.isInteger(seq) && seq > 0;
// Sort folders alphabetically by name
const alphabeticallySorted = [...items].sort((a, b) => a.name && b.name && a.name.localeCompare(b.name));
// Extract folders without 'seq'
const withoutSeq = alphabeticallySorted.filter((f) => !isSeqValid(f['seq']));
// Extract folders with 'seq' and sort them by 'seq'
const withSeq = alphabeticallySorted.filter((f) => isSeqValid(f['seq'])).sort((a, b) => a.seq - b.seq);
const sortedItems = withoutSeq;
View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Use a supported item type (http, graphql, etc.) in the collection definition.
- Update bruno-cli if the item type comes from a newer collection format.
When it happens
Trigger: Thrown at packages/bruno-cli/src/utils/collection.js:663 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/bfa7863df0474e3a.
Report an issue: GitHub.