{"record":{"id":"8ff0c0dab9ae3855","repo":"juanfont/headscale","slug":"s-creating-cookiejar-w","errorCode":null,"errorMessage":"%s creating cookiejar: %w","messagePattern":"(.+?) creating cookiejar: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/scenario.go","lineNumber":1127,"sourceCode":"\t\t\t\t)\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunc copyCookie(c *http.Cookie) *http.Cookie {\n\tcc := *c\n\treturn &cc\n}\n\nfunc newLoginHTTPClient(hostname string) (*http.Client, error) {\n\thc := &http.Client{\n\t\tTransport: LoggingRoundTripper{Hostname: hostname},\n\t}\n\n\tjar, err := newDebugJar()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"%s creating cookiejar: %w\", hostname, err)\n\t}\n\n\thc.Jar = jar\n\n\treturn hc, nil\n}\n\n// doLoginURL visits the given login URL and returns the body as a string.\nfunc doLoginURL(hostname string, loginURL *url.URL) (string, error) {\n\tlog.Printf(\"%s login url: %s\\n\", hostname, loginURL.String())\n\n\thc, err := newLoginHTTPClient(hostname)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tbody, _, err := doLoginURLWithClient(hostname, loginURL, hc, true)\n\tif err != nil {","sourceCodeStart":1109,"sourceCodeEnd":1145,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/scenario.go#L1109-L1145","documentation":"Error \"%s creating cookiejar: %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/scenario.go:1127 when the library encounters an invalid state.","commonSituations":"Creating a cookie jar for the OIDC login flow failed. This is an internal test-harness error; retry the scenario.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (creating cookiejar); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (creating cookiejar); 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-15T17:31:12.345Z"}