Refresh Token - 401 - Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â07-15-2024 12:25 AM
Hi everyone, I'm trying to use the refresh token and I get a 401 error. { ' access_denied' }
I'm sending a POST request with
"Content-type": "application/x-www-form-urlencoded"
and
{ grant_type: 'refresh_token' , client_id, client_secret, refresh_token }
The error is not so informative and I don't know what I'm doing wrong
please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â07-15-2024 01:53 PM
Hi, testing with Postman and a PDI; I am able to successfully refresh a token using the Content type and parameters you have listed. Are you 'Post'ing to /oauth_token.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â07-16-2024 12:39 AM
Thanks for the response, every third request if failing and I get access_denied. I'm sending a post request to /oauth_token.do with the same parameters you do and the refresh process if failing. what can be the reason? sometimes it work and sometimes it doesn't? same method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â07-17-2024 01:20 PM
Have you checked the state of your token in Oauth credentials table?
Do you have any custom code that could be invalidating the token?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â07-21-2024 12:47 AM
I don't have a code that revokes the token and I don't have access to our customers credentials table so unfortunately it's not an option for me. I can't understand how suddenly a refresh token isn't working anymore