Request not sent to uri= https://<>/csp/gateway/am/api/login?access_token : java.net.UnknownHostExce

AshishS25940620
Tera Contributor

Getting this issue .

Request not sent to uri= https://<>/csp/gateway/am/api/login?access_token : java.net.UnknownHostException: <>

 

How to fix it.

 

 

2 REPLIES 2

Chaitanya ILCR
Giga Patron

Hi @AshishS25940620 ,

 

you might need a mid server 

 

Refer this

https://www.servicenow.com/community/app-engine-forum/request-not-sent-to-uri-url-java-net-unknownho...

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron

@AshishS25940620 

are you able to hit that endpoint using Postman?

The 3rd party API must be behind some firewall and they might have to add your ServiceNow instance IP address in their whitelist to allow incoming traffic from that IP

check that

Finding the IP address information for your instance 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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