{"record":{"id":"9bfbd7565291b932","repo":"usebruno/bruno","slug":"request-timed-out-the-server-took-too-long-to-res","errorCode":null,"errorMessage":"Request timed out. The server took too long to respond.","messagePattern":"Request timed out\\. The server took too long to respond\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-cli/src/commands/import.js","lineNumber":108,"sourceCode":"      console.log(chalk.yellow(`Fetching specification from URL: ${source}`));\n      try {\n        const axiosOptions = {\n          timeout: 30000, // 30 second timeout\n          maxContentLength: 10 * 1024 * 1024,\n          validateStatus: (status) => status >= 200 && status < 300\n        };\n\n        // Skip SSL certificate validation if insecure flag is set\n        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","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-cli/src/commands/import.js#L90-L126","documentation":"Error \"Request timed out. The server took too long to respond.\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-cli/src/commands/import.js:108 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Increase the request timeout or check the remote server's responsiveness.","Verify the URL is correct and the network path to the server is stable."],"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"}