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

auth@edge: fix refreshauth error handling #458

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

troyready
Copy link
Contributor

Previous "break" statement would cause None to be returned by the function (after the 5 attempts failed), which refreshauth did not expect. Changing it to raise pushes the error into refresh auth so it can invalidate the token as expected.

parseauth also uses this shared function, and this should also help avoid unexpected error handling in it.

Cosmetically, removed the traceback logging from the http method because it didn't show anything farther up the stack than the
http_post_with_retry method (just request/urllib spam).

Cloudwatch Logs showing the error occurring:
image

Previous "break" statement would cause None to be returned by the
function, which refreshauth did not expect. Changing it to raise pushes
the error into refresh auth so it can invalidate the token as expected.

parseauth also uses this shared function, and this should also help
avoid unexpected error handling in it.

Cosmetically, removed the traceback logging from the http method because
it didn't show anything farther up the stack than the
http_post_with_retry method (just request/urllib spam)
@troyready troyready merged commit c0e407c into master Sep 21, 2020
@troyready troyready deleted the bugfix/aae_refresh_error_handling branch September 21, 2020 23:47
@ITProKyle ITProKyle added the bug Something isn't working label Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants