-
Notifications
You must be signed in to change notification settings - Fork 159
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
Revoke throws an error when trying to process the response #170
Comments
I'm seeing this as well. The error I get is "TypeError: Cannot destructure property 'request' of '(intermediate value)(intermediate value)(intermediate value)' as it is null." It says it's occurring here https://github.com/intuit/oauth-jsclient/blob/master/src/OAuthClient.js#L319 |
Thanks @Matthew-John-Emerson and @bogeorget4 , could you please help with the steps to reproduce this error. |
I run into this as well. I am able to see it when I connect to QBO, and then disconnect through the use of |
Hi, @rajeshgupta723 |
I too am encountering this issue, on a DELETE request. 4.1.2 |
Hi, thank you all, will look into this. In the meantime, feel free to raise a PR for the fix. |
Hi @amadeogallardo @vektorblake @stepanFederlian @Matthew-John-Emerson @crisebrough @bogeorget4 -- could you all please get the latest from the branch release-4.1.3 and test this out. Please confirm if the fix works for you. Thanks |
Hi @rajeshgupta723 , I did try the release-4.1.3 and still got an issue. The I have attached a screen shot. I have changed line 319 from const authResponse = res.json ? res : null; to const authResponse = res.hasOwnProperty('json') ? res : null; and the error ran away. |
Hi @m4xleb could you please get the latest from the branch named "Release-4.1.3" and retest the same. This has been fixed. Let me know if you still see any issues. Thanks |
Just ran into this, any word on when 4.1.3 will be released? |
Hi @andrew-amplinks please see the latest release 4.1.3 here: |
When I call
revoke
, I end up getting an error because it is trying to destructure the response JSON when the json is null. This happens even though the request to Intuit succeeds and the token is revoked. Also, it looks like the tests for revoke are also failing locally.The text was updated successfully, but these errors were encountered: