You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user of the library does not provide a custom cient, http.DefaultClient is used, and a custom RoundTripper is set in order to
implement authentication / retries, e.g.
returnnil, fmt.Errorf("setting up authentication: %w", err)
}
cfg.HTTPClient.Transport=authRoundTripper
This can have unintended consequences and should be avoided in my opinion. Now,
every time I (or another package) uses the default client, it behaves
differently than expected.
I'd suggest to instead create a new client: cfg.HTTPClient = &http.Client{}.
This change would need to be done for every service.
Activity
joaopalet commentedon Jan 10, 2024
Hi,
Thank you for opening the issue! We have created a bug ticket for this and will work on it soon
hcsa73 commentedon Jan 24, 2024
Fixed in the most recent release