Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librato: fix authentication with retry and debug enabled #52

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

bernerdschaefer
Copy link
Contributor

We've observed in our systems that retries never succeed, but instead
always return a 401 Unauthorized after the failure.

It turns out when using both WithRetries and WithRequestDebugging the
authentication was being dropped before retry attempts were made.

This updates the reporter to preserve headers when capturing debug
information so that subsequent retries can succeed.

We've observed in our systems that retries never succeed, but instead
always return a `401 Unauthorized` after the failure.

It turns out when using both WithRetries and WithRequestDebugging the
authentication was being dropped before retry attempts were made.

This updates the reporter to preserve headers when capturing debug
information so that subsequent retries can succeed.
@bernerdschaefer bernerdschaefer merged commit 084eff4 into master Nov 1, 2018
@bernerdschaefer bernerdschaefer deleted the bs-preserve-auth branch November 1, 2018 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants