Where are errors logged if the REST API returns an error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I manage two ServiceNow instances.
These two instances send and receive records via the REST API.
At one point, the status code for a REST action was anything other than 200.
The error message from the sending instance included "unknown tag 28," and the REST result was poor.
I suspected an error was occurring on the receiving side as well, but I don't know which table to check. Nothing was recorded in the system logs.
Does anyone know which table to investigate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @bonsai
Check Outbound HTTP Requests.
To check the Outbound HTTP logs.
Filter Navigator -> Outbound HTTP Requests.
Locate the outbound call that was made. (search by URL , by hostname if possible and probable time)
Open the log record
Check two tab is there Request and response. You will able to see payload there.
If full payload you are not able to see, there is some properties needs to update (which you can do in sub-prod) temporarily and debug the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @bonsai ,
Did you checked in "Outbound HTTP Requests" :
Also alternatively,
Outbound from ServiceNow - use below link and understand how to enable the log level :
https://developer.servicenow.com/blog.do?p=/post/outbound-http-logging/
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
43m ago
Hello @bonsai
Good day,
May be try to check in "Outbound HTTP Requests"
Please refer below links for your query. it will help you for sure.
https://developer.servicenow.com/blog.do?p=/post/outbound-http-logging/
Query similar.
https://www.servicenow.com/community/api-insights-forum/error-logs-for-a-specific-rest-api-call/m-p/...
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
