Getting error Request not sent to uri=url : java.net.UnknownHostException: api-gateway-

Raj40
Tera Contributor

Trying get API response using ServiceNow outbound Rest message with No authentication and Default get.

 Getting error as :  " Request not sent to uri=url : java.net.UnknownHostException: api-........."

Some help me how to resolve this issue.

 

Thankyou

Raju

1 REPLY 1

Sanjay191
Tera Sage

 

  • Cause: The ServiceNow instance cannot resolve the domain name (api-...) of the external API, leading to the UnknownHostException. This could be due to:

    • Incorrect or malformed URL.
    • The domain name does not exist or cannot be found.
    • Network or DNS issues preventing ServiceNow from reaching the external API.

      Solution:

      1. Verify the URL: Ensure the URL you're using is correct and reachable. Double-check for any typos or formatting issues.

      If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.