{"record":{"id":"811d6c8701cd9c6f","repo":"usebruno/bruno","slug":"error-fetching-url-error-message","errorCode":null,"errorMessage":"Error fetching URL: ${error.message}","messagePattern":"Error fetching URL: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/commands/import.js","lineNumber":117,"sourceCode":"        if (options.insecure) {\n          console.log(chalk.yellow('Warning: SSL certificate verification is disabled. Use with caution.'));\n          axiosOptions.httpsAgent = new (require('https')).Agent({ rejectUnauthorized: false });\n        }\n\n        const response = await axios.get(source, axiosOptions);\n        content = response.data;\n      } catch (error) {\n        if (error.code === 'ECONNABORTED') {\n          throw new Error('Request timed out. The server took too long to respond.');\n        } else if (error.code === 'CERT_HAS_EXPIRED' || error.code === 'DEPTH_ZERO_SELF_SIGNED_CERT'\n          || error.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {\n          throw new Error(`SSL Certificate error: ${error.code}. Try using --insecure if you trust this source.`);\n        } else if (error.response) {\n          throw new Error(`Failed to fetch from URL: ${error.response.status} ${error.response.statusText}`);\n        } else if (error.request) {\n          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\n      // If response is already an object, return it directly\n      if (typeof content === 'object' && content !== null) {\n        return content;\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    // If content is a string, try to parse as JSON or YAML\n    if (typeof content === 'string') {\n      try {","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/commands/import.js#L99-L135","documentation":"Error \"Error fetching URL: ${error.message}\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/commands/import.js:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review the reported error message for specifics (DNS, TLS, HTTP status).","Retry with --insecure or a corrected URL as appropriate."],"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"}