{"record":{"id":"fd36f347107bac65","repo":"usebruno/bruno","slug":"wsdl-content-must-be-a-string","errorCode":null,"errorMessage":"WSDL content must be a string","messagePattern":"WSDL content must be a string","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/commands/import.js","lineNumber":202,"sourceCode":"          throw new Error(`No response received from server. Check the URL and your network connection.`);\n        } else {\n          throw new Error(`Error fetching URL: ${error.message}`);\n        }\n      }\n    } else {\n      // Handle file input\n      if (!await exists(source)) {\n        throw new Error(`File does not exist: ${source}`);\n      }\n      content = fs.readFileSync(source, 'utf8');\n    }\n\n    // WSDL files are XML, so we return the content as a string\n    if (typeof content === 'string') {\n      return content;\n    }\n\n    throw new Error('WSDL content must be a string');\n  } catch (error) {\n    // Let the specific error handling from above propagate\n    throw error;\n  }\n};\n\nconst handler = async (argv) => {\n  try {\n    const { type, source, output, collectionFormat, outputFile, collectionName, insecure, groupBy } = argv;\n\n    if (!type || !['openapi', 'wsdl'].includes(type)) {\n      console.error(chalk.red('Only OpenAPI and WSDL imports are supported currently'));\n      process.exit(1);\n    }\n\n    if (!source) {\n      console.error(chalk.red('Source file or URL is required'));\n      process.exit(1);","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/commands/import.js#L184-L220","documentation":"Error \"WSDL content must be a string\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/commands/import.js:202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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"}