The CreatorCon Call for Content is officially open! Get started here.

Getting Http Status 0 when triggering REST Message to Get OAuth Access Token

Mrman
Tera Guru

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 .

@Ankur Bawiskar 

 

12 REPLIES 12

Hi,

not very sure on this error

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar  I have removed OAuth profile from Authentication tab abd only sending the Rest message Content . I am getting below error .

I have checked the Outbound HTTP logs also.

Method failed: (/oauth/token) with code: 401 - Invalid username/password combo

Very difficult to debug as we don't have instance access etc

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader