-
Notifications
You must be signed in to change notification settings - Fork 18
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
Improve 401 Error Logging #200
Conversation
@nagem What's the offending value? And how were you trying to serialize? Simply, |
@gsfr I'm still not sure exactly what is causing json.dumps to fail because when I use the str_from_dict method I added, none of the headers are changed to the error text. Here were the two ways I tried initially: Code:
Log:
Code:
Log:
Here str(d) helpfully tells me it's an EnvironHeaders object |
TL;DR: Ok, so we know that The key to debugging this is getting a handle on one of these objects in an IPython shell, which has tab completion that greatly eases exploration.
|
Thanks @gsfr, the str(dict.items()) works just fine. I should really make the IPython shell a more integral part of my daily dev process. PR updated - removed str_from_dict. Will merge unless anyone else has any comments. |
👍 Happy to help get you set up. @kofalt, you too. |
Closes #188
Adds additional logging to 'Invalid OAuth2 Token' logging. Discussion about additional changes that could be made can be found in the issue linked above.