Closed ekscentrysytet closed 4 years ago
However some time after (like 2-3 mins) when I remove code that revokes token and making API requests to QB I'm getting error that token is revoked.
{"warnings":null,"intuitObject":null,"fault":{"error":[{"message":"message=AuthenticationFailed; errorCode=003200; statusCode=401","detail":"Token revoked","code":"3200","element":null}],"type":"AUTHENTICATION"},"report":null,"queryResponse":null,"batchItemResponse":[],"attachableResponse":[],"syncErrorResponse":null,"requestId":null,"time":1580114174171,"status":null,"cdcresponse":[]}
@ekscentrysytet : Are you sure the access/refresh token was not revoked already? If the token is already revoked and you perform a revoke on it, the library would throw the Bad Request
error similar to what you have posted above.
Could you provide the intuit-tid
from the response headers if you are still getting the same error, I could verify the token validity?
@abisalehalliprasan You're right, I had two concurrent requests and in one of them I revoked a token and on another I got that error. Thanks! Closing now
Hello! When I call
oauthClient.revoke()
I keep gettingResponse has an Error
error message with 400 status. My sample code is following:The result if following:
Any ideas?