python-quickbooks icon indicating copy to clipboard operation
python-quickbooks copied to clipboard

Can't get the access and refresh tokens under 3 hours (Incorrect or invalid refresh token)

Open tejeswarareddy12 opened this issue 3 months ago • 0 comments

Initially it's successfully getting the tokens, but if I try again instantly getting this error there's some cool down of 3 hours or something to get tokens again succesfully how to manage this

Traceback (most recent call last): File "test.py", line 1, in auth_client.refresh(refresh_token=REFRESH_TOKEN) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/intuitlib/client.py", line 157, in refresh send_request('POST', self.token_endpoint, headers, self, body=urlencode(body), session=self) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/intuitlib/utils.py", line 95, in send_request raise AuthClientError(response) intuitlib.exceptions.AuthClientError: HTTP status 400, error message: b'{"error":"invalid_grant","error_description":"Incorrect or invalid refresh token"}', intuit_tid 1-xxxx9 at time Mon, 22 Dec 2025 13:16:02 GMT

tejeswarareddy12 avatar Dec 22 '25 13:12 tejeswarareddy12