"access_denied","error":"server_error" error for the REST API integration between two instances

Kannan Nair
Tera Contributor

I have setup a REST API integration between two ServiceNow demo instances using OAuth2.0 integration. Below is the screenshot of the application registry from the target instance.

KannanNair_0-1737722424200.png

 

Below mentioned is the screenshot of application registry from the source instance.

 

KannanNair_3-1737723396301.png

 

When I sent the request from Postman, the integration is working as expected. However, in the source instance when I click on the 'Get OAuth Token' related list in the REST Message, I am receiving the error as below.

 

KannanNair_2-1737722958443.png

 

Thanks in advance!

3 REPLIES 3

NagaChandaE
Kilo Sage

Hi @Kannan Nair 

 

can you share the rest message form photo i think there is no mistake in above pictures

Hello @NagaChandaE 

 

Thanks for your reply. I have tried different options and was able to fix the issue by changing the "Default Grant type" as "Resource Owner Password Credentials" on the Application Registry on the Source instance.

 

KannanNair_0-1737958650612.png

 

 

KannanNair_1-1737958850783.png

 

Can you please share your full page of APplication registry in both source and target instance that is working? I am getting exact same error and also tried this but still stuck at same place.