Can anyone help with the error message "User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_grant, Invalid refresh token: "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 01:31 AM
Hello All,
When we check in manage tokens it can be seen that the refresh token has not expired but while attempt a REST call we are getting following error:
User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_grant, Invalid refresh token:
Can someone help with what could the issue be?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 04:28 AM
Hi,
I haven't used it much
But you will have to update the credentials of the user in the OAuth profile configuration
Please try to test the same from Postman once
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 10:37 PM
Hello Ankur,
Credentials were changed but tokens were re-generated using new credentials not sure what is the missing link since it throws the expiry error quite often that expected.
To add to this if I re-generate the token it works perfectly for the day but the next day it would show as invalid.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2021 11:11 PM
Hi,
not much sure on this then.
What happens when you consume the actual endpoint? Does it get valid token and the API is successful?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 02:23 AM
Hello All,
Were you able to find a solution to this error? I have faced a similar issue recently.