If you encounter a problem with a monitor, the following troubleshooting steps may help you identify and resolve the issue.
The Console Log can help you debug issues you might encounter with your monitors.
console.log()
statements you included in your pre-request and post-response scripts.For more information on debugging with the Postman Console, see Troubleshooting API requests.
Run the failing monitor's collection with its environment in Postman or Newman to see if it's working.
If a local run passes, check that sync is working by looking for the sync symbol on the left side of Postman's footer. This will ensure any local changes persist.
console.log(environment);
to your request scripts and compare the results across monitoring and local runs.Unexpected response bodies or header values can be a source of monitor issues. You can log these with the following code:
console.log(JSON.stringify(responseBody, null, 2));
console.log(JSON.stringify(responseHeaders, null, 2));
try - catch
block will enable the test and pre-request scripts in your collection run to completion.Last modified: 2023/09/26