-
Notifications
You must be signed in to change notification settings - Fork 160
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
Handle 401 AuthorizationFailure response #110
Comments
@lardcanoe : The SDK provides all the error details when an exception is thrown Which provides more information about the error :
If I am missing anything, Could you maybe post the exact error you saw so that we could see if any additional details need to be added? Thanks |
https://github.com/intuit/oauth-jsclient/blob/master/src/response/AuthResponse.js#L106 which is called from https://github.com/intuit/oauth-jsclient/blob/master/src/OAuthClient.js#L586
|
Thanks @lardcanoe . I will get this fixed in the next release 👍 |
The
AuthResponse.prototype.getJson
function inintuit-oauth/src/response/AuthResponse.js
needs to handle a 401 error more elegantly. I had to monkey-patch the function to figure out what was going on. The OAuth credentials I had were able to refresh the token, but the subsequent call failed withAuthResponse is not JSON
.URL:
Part of response:
Some key headers:
The text was updated successfully, but these errors were encountered: