- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2023 08:43 AM - edited ‎04-24-2023 08:44 AM
Hi,
I have a process where I am sending a JSON via REST API message. This API is called inside of a script include where we build out the JSON object. During my testing I have this working in Dev, but not Test. I can see the script executes code past the REST call, but the 3rd party are not seeing anything.
Is there a table that shows the exact JSON you have tried to send, failed or completed, or just a attempt.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2023 06:53 AM - edited ‎04-28-2023 03:38 AM
I am not able to find any module with that name. I did find "Outbound HTTP Logs" which shows the fields you mentioned above, although mine are blank for some reason.
I have been reading that you might need to enable a property and set the level for your HTTP log capturing (mine is currently basic, you need to set to the highest level to see request body). Doing this would then allow you to use the "Node Log File Browser".
I did manage to find the issue in the end. Somehow we have different password being used in Test for the basic authentication profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2023 09:14 AM
Hi @Jacob23
ServiceNow has a feature called "REST Message Logs" that can be used to track REST API requests and responses. This feature can help you troubleshoot issues with REST API requests and see the exact JSON that was sent.
To view REST Message Logs, navigate to "System Logs" > "REST Message Logs" in the ServiceNow menu. Here you can filter by date range, HTTP status code, and other criteria to find the specific request and response you're interested in.
When you find the REST API request you want to investigate, click on the log entry to view details about the request and response. The "Request Body" section will show you the exact JSON that was sent, and the "Response Body" section will show you the JSON response received from the 3rd party.
If you're not seeing any logs for your REST API request, it's possible that there's an issue with the way the request is being triggered or that the REST API endpoint is not correctly configured. You may need to check your ServiceNow logs and also check with the 3rd party to ensure that the API endpoint is accessible and correctly configured.
Let me know if this resolved your issue.
Happy to help!
Please mark helpful/correct, if your query is addressed and/or answered!
Thanks,
Vamshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2023 06:53 AM - edited ‎04-28-2023 03:38 AM
I am not able to find any module with that name. I did find "Outbound HTTP Logs" which shows the fields you mentioned above, although mine are blank for some reason.
I have been reading that you might need to enable a property and set the level for your HTTP log capturing (mine is currently basic, you need to set to the highest level to see request body). Doing this would then allow you to use the "Node Log File Browser".
I did manage to find the issue in the end. Somehow we have different password being used in Test for the basic authentication profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2023 09:19 AM
Hi @Jacob23,
Awesome, happy you were able to narrow it down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2023 08:49 AM
I'm on Vancouver and "System Logs" > "REST Message Logs" cannot be found
The logs of the outbound REST message are stored in Outbound HTTP Logs like OP said, however to make it show information, we need to set the "HTTP Log Level" of the HTTP Method to "All" to see the response body.
How to do it: