usebruno/bruno · error · Error
WSDL content must be a string
Error message
WSDL content must be a string
What it means
Error "WSDL content must be a string" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-cli/src/commands/import.js:202
throw new Error(`No response received from server. Check the URL and your network connection.`);
} else {
throw new Error(`Error fetching URL: ${error.message}`);
}
}
} else {
// Handle file input
if (!await exists(source)) {
throw new Error(`File does not exist: ${source}`);
}
content = fs.readFileSync(source, 'utf8');
}
// WSDL files are XML, so we return the content as a string
if (typeof content === 'string') {
return content;
}
throw new Error('WSDL content must be a string');
} catch (error) {
// Let the specific error handling from above propagate
throw error;
}
};
const handler = async (argv) => {
try {
const { type, source, output, collectionFormat, outputFile, collectionName, insecure, groupBy } = argv;
if (!type || !['openapi', 'wsdl'].includes(type)) {
console.error(chalk.red('Only OpenAPI and WSDL imports are supported currently'));
process.exit(1);
}
if (!source) {
console.error(chalk.red('Source file or URL is required'));
process.exit(1);View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Pass the WSDL document as a string, e.g. by reading the file contents first.
- Check the import call supplies file text, not a buffer or path object.
When it happens
Trigger: Thrown at packages/bruno-cli/src/commands/import.js:202 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/fd36f347107bac65.
Report an issue: GitHub.