Getting Http Status 0 when triggering REST Message to Get OAuth Access Token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 10:21 AM
Hi ,
I create a Rest Message in ServiceNow to call a 3rd party endpoint to request access token .
I have included the client id, client secret , grant type as client credentials , and audience in the Body and tested in Postman . I am able to get the response and getting access token.
But the same configuration when I do in service now using REST message , I am getitng Http Status as 0 and Error code as 1.
Error message as :Request not sent to uri=
Please suggest .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2022 01:57 AM
Hi,
error 401 means incorrect username and password
Did you give correct credentials for Authentication profile?
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
‎05-06-2022 02:32 AM
Hi Ankur,
I have not given Authentication profile , I included the client id , client secret in the Rest message content .
Will this be an issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2022 02:42 AM
Hi,
how are you testing with postman?
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
‎05-06-2022 03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2022 04:04 AM