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

**URL:** <https://community.postman.com/t/how-to-handle-error-getaddrinfo-enotfound-when-a-request-fails-to-send/30268>\
**Category:** Help Hub\
**Created:** [December 1, 2021, 2:37pm UTC](https://community.postman.com/t/how-to-handle-error-getaddrinfo-enotfound-when-a-request-fails-to-send/30268 "2021-12-01T14:37:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j91mason6](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@j91mason6](https://community.postman.com/u/j91mason6)\
**Post date:** [December 1, 2021, 2:37pm UTC](https://community.postman.com/t/how-to-handle-error-getaddrinfo-enotfound-when-a-request-fails-to-send/30268/1 "2021-12-01T14:37:25Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) 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 ▶POST [https://api.taapi.io/bulk](https://api.taapi.io/bulk) Error: getaddrinfo ENOTFOUND [api.taapi.io](http://api.taapi.io)
