Skip to content

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

@tejeswarareddy12

Description

@tejeswarareddy12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions