How to Handle Error: getaddrinfo ENOTFOUND when a request fails to send

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
When using postman runner, sometimes a request to a particular URL fails to send with the error: Error: getaddrinfo ENOTFOUND. Note, that this is not happening everytime, nor is it clear why.

I want to know if there is a way to capture this and prevent if from happening or if it happens, handle it .
Perhaps using pre-request scripts to prevent this from happening? Can i test the endpoint before sending the request? then is there is this error, capture it and try again?

Details (like screenshots):

11:39:37.728 :arrow_forward:POST Error: getaddrinfo ENOTFOUND