juanfont/headscale · error
%s creating cookiejar: %w
Error message
%s creating cookiejar: %w
What it means
Error "%s creating cookiejar: %w" thrown in juanfont/headscale.
Source
Thrown at integration/scenario.go:1127
)
}
}
}
}
func copyCookie(c *http.Cookie) *http.Cookie {
cc := *c
return &cc
}
func newLoginHTTPClient(hostname string) (*http.Client, error) {
hc := &http.Client{
Transport: LoggingRoundTripper{Hostname: hostname},
}
jar, err := newDebugJar()
if err != nil {
return nil, fmt.Errorf("%s creating cookiejar: %w", hostname, err)
}
hc.Jar = jar
return hc, nil
}
// doLoginURL visits the given login URL and returns the body as a string.
func doLoginURL(hostname string, loginURL *url.URL) (string, error) {
log.Printf("%s login url: %s\n", hostname, loginURL.String())
hc, err := newLoginHTTPClient(hostname)
if err != nil {
return "", err
}
body, _, err := doLoginURLWithClient(hostname, loginURL, hc, true)
if err != nil {View on GitHub (pinned to 565fd254d0)
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.
Example fix
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.
When it happens
Trigger: Thrown at integration/scenario.go:1127 when the library encounters an invalid state.
Common situations: Creating a cookie jar for the OIDC login flow failed. This is an internal test-harness error; retry the scenario.
AI-assisted analysis of juanfont/headscale@565fd254d0 (2026-08-15).
Data as JSON: /api/errors/8ff0c0dab9ae3855.
Report an issue: GitHub.