{"record":{"id":"676dbb47b4f9656d","repo":"juanfont/headscale","slug":"s-sending-http-request-w","errorCode":null,"errorMessage":"%s sending http request: %w","messagePattern":"(.+?) sending http request: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/scenario.go","lineNumber":1189,"sourceCode":"\treq, err := http.NewRequestWithContext(ctx, http.MethodGet, loginURL.String(), nil)\n\tif err != nil {\n\t\treturn \"\", nil, fmt.Errorf(\"%s creating http request: %w\", hostname, err)\n\t}\n\n\toriginalRedirect := hc.CheckRedirect\n\tif !followRedirects {\n\t\thc.CheckRedirect = func(req *http.Request, via []*http.Request) error {\n\t\t\treturn http.ErrUseLastResponse\n\t\t}\n\t}\n\n\tdefer func() {\n\t\thc.CheckRedirect = originalRedirect\n\t}()\n\n\tresp, err := hc.Do(req)\n\tif err != nil {\n\t\treturn \"\", nil, fmt.Errorf(\"%s sending http request: %w\", hostname, err)\n\t}\n\tdefer resp.Body.Close()\n\n\tbodyBytes, err := io.ReadAll(resp.Body)\n\tif err != nil {\n\t\treturn \"\", nil, fmt.Errorf(\"%s reading response body: %w\", hostname, err)\n\t}\n\n\tbody := string(bodyBytes)\n\n\tvar redirectURL *url.URL\n\tif resp.StatusCode >= http.StatusMultipleChoices && resp.StatusCode < http.StatusBadRequest {\n\t\tredirectURL, err = resp.Location()\n\t\tif err != nil {\n\t\t\treturn body, nil, fmt.Errorf(\"%s resolving redirect location: %w\", hostname, err)\n\t\t}\n\t}\n","sourceCodeStart":1171,"sourceCodeEnd":1207,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/scenario.go#L1171-L1207","documentation":"Error \"%s sending http request: %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/scenario.go:1189 when the library encounters an invalid state.","commonSituations":"Sending the login HTTP request failed. Check network connectivity between the test container and the OIDC provider container.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (sending http request); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (sending http request); retry the operation after fixing the input, configuration, or environment.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"565fd254d06c4c7f9a8cad1714a43445c79ba420","analyzedAt":"2026-08-15T13:12:30.133Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}