oAuth Token available but REST message display "OAuth Access or Refresh tokens are not available"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 12:58 PM - edited 12-05-2022 01:00 PM
Hi All,
I have Third-party oAuth Configured for accessing external data through REST API
I'm able to fetch the token for the credential using Grant type=Password.I used the third-party API username and password to fetch the token.
Credentials has a message displayed as below,
OAuth Refresh token is available but will expire soon at <one month from now>. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token.
But the REST Outbound Message where the oAuth credential is mapped, display the below warning message and GET method fails with 401 error invalid username/password combo
OAuth Access or Refresh tokens are not available. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token.
All app registry configurations are intact and as per the instructions given by oAuth provider.
Any idea why its failing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 04:33 PM
Here is a similar issue report for OAuth token. see if it helps:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1116908

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2022 07:26 PM
Thanks Sukraj!
I tried this but still facing the same issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2022 02:41 PM
I got this fixed. There was a oAuth 2.0 Credential record with the same OAuth profile mapped, where I was refreshing token using "Get OAuth Token" .
I had to click the "Get OAuth Token" on the REST MESSAGE itself to have the token mapped to HTTP Methods.