{"record":{"id":"a3d50cdbd4ea40aa","repo":"SigNoz/signoz","slug":"couldn-t-make-request-w","errorCode":null,"errorMessage":"couldn't make request: %w","messagePattern":"couldn't make request: %w","errorType":"http","errorClass":"basemodel.ApiError","httpStatus":500,"severity":"error","filePath":"ee/query-service/app/api/cloudIntegrations.go","lineNumber":339,"sourceCode":"\n\treq, err := http.NewRequestWithContext(ctx, reqMethod, url, reqBody)\n\tif err != nil {\n\t\treturn nil, basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't prepare request: %w\", err,\n\t\t))\n\t}\n\n\tfor k, v := range headers {\n\t\treq.Header.Set(k, v)\n\t}\n\n\tclient := &http.Client{\n\t\tTimeout: 10 * time.Second,\n\t}\n\n\tresponse, err := client.Do(req)\n\tif err != nil {\n\t\treturn nil, basemodel.InternalError(fmt.Errorf(\"couldn't make request: %w\", err))\n\t}\n\n\tdefer response.Body.Close()\n\n\trespBody, err := io.ReadAll(response.Body)\n\tif err != nil {\n\t\treturn nil, basemodel.InternalError(fmt.Errorf(\"couldn't read response: %w\", err))\n\t}\n\n\tvar resp ResponseType\n\n\terr = json.Unmarshal(respBody, &resp)\n\tif err != nil {\n\t\treturn nil, basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't unmarshal gateway response into %T\", resp,\n\t\t))\n\t}\n","sourceCodeStart":321,"sourceCodeEnd":357,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/ee/query-service/app/api/cloudIntegrations.go#L321-L357","documentation":"The HTTP client (10s timeout) failed to execute the gateway request: connection refused, DNS failure, TLS error, or timeout. This is the transport-level failure of requestAndParseResponse's client.Do call.","triggerScenarios":"Any gateway request when the host is unreachable, DNS cannot resolve the gateway, TLS handshake fails, or the server takes longer than the hardcoded 10-second timeout.","commonSituations":"Egress firewall/proxy blocking the SigNoz cloud, network flaps, self-signed or expired certificates, or slow upstream responses exceeding the timeout.","solutions":["Check the wrapped error for timeout vs refused vs TLS specifics","Verify DNS and egress connectivity to the gateway host from the query-service container","Fix proxy/TLS configuration if indicated","Retry transient failures; investigate slow endpoints if timeouts repeat"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"Retry with backoff on network errors, classifying timeouts vs refused vs TLS; stop retrying on permanent TLS/config errors.","preventionTips":["Allow egress to the gateway in firewall rules","Size the 10s client timeout to your slowest expected endpoint","Use retries with jitter in automation"],"tags":["network","http-client","timeout","gateway"],"backgroundTag":"http-request-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}