Issue: I have a collection of 50 APIs that work fine when run locally. However, when I set up API monitoring, some of the APIs randomly fail, returning a 404 error.
Details:
The APIs are executed hourly.
In each monitoring round, different APIs fail with a 404 error.
A delay between requests and a timeout of 6000 ms have been set, but the issue persists.
Steps Taken:
Verified the APIs work locally without issues.
Set a delay between requests to 6000 ms
Set a request timeout of 6000 ms.
Request for Assistance: Any suggestions or solutions to prevent the random 404 errors during API monitoring would be much appreciated.
What’s the construct of the URL, does that depend of something dynamic and does that resource exist without some other prior step before the 404 responses.
A 404 is telling you something isn’t found, it’s not throwing a 500 errors or anything around the authorisation.
We might need to know a little bit more context here.
Yes, The URL is dynamic but when I check in the postman, I am able to see the correct url with the expected parameters, still I am getting 400 error. when try to run it manually it works fine I am getting 200
So there’s a big difference between getting 400 and getting a 404, which you original stated in the title and description.
400 points more at the structure of that request and it not being populated correctly. What does the Postman Console show for that request? How is that different to a 200 request?
Are you able to add additional logging into the scripts to log the specific request details and see what might be happening here?