Error Logs for a specific Rest API call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2024 08:18 AM
Where can I find the error logs for a particular REST API call on e.g: /api/x_dynat_ruxit/problem_notification
If I get 500 status code back and no other message? Thanks for the Info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2024 04:59 PM
hi @swaggerdagger ,
I found this thread in Community. A little bit old, but I hope it would help you,,,
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2024 06:01 PM
hi @swaggerdagger ,
When integrating external systems with ServiceNow, one of the key challenges developers face is effectively managing and logging errors that arise from REST API calls. This article I created is designed to equip you with the knowledge needed to implement robust error logging in these scenarios. We’ll provide you with how to handle exceptions, log errors to system logs, and even create custom log tables for detailed tracking. By mastering these techniques, you'll ensure that your integrations are not only efficient but also resilient to unforeseen issues. Whether you're new to ServiceNow or a seasoned developer, this guide will enhance your ability to troubleshoot and maintain API-driven workflows.
A Developer's Guide to Implementing Error Logging in ServiceNow REST API Calls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2024 01:44 PM
Hi, The capture the logs for below use cases.
1. Inbound to ServiceNow - Define the import set table and capture the incoming transaction and logs
2. Outbound from ServiceNow - use below link and understand how to enable the log level
Outbound HTTP Logging (servicenow.com)
Suresh.