Getting error Request not sent to uri=url : java.net.UnknownHostException: api-gateway-
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 11:07 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 03:12 AM
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:
Verify the URL: Ensure the URL you're using is correct and reachable. Double-check for any typos or formatting issues.
- For example, ensure you are using https://api.example.com instead of http://api.example.com (if HTTPS is required).
- For example, ensure you are using https://api.example.com instead of http://api.example.com (if HTTPS is required).