# Postman Monitor - Error: getaddrinfo ENOTFOUND

**URL:** <https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149>\
**Category:** Help Hub\
**Tags:** monitors, tests, collections\
**Created:** [November 1, 2018, 9:06am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149 "2018-11-01T09:06:36Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mh92](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mh92](https://community.postman.com/u/mh92)\
**Post date:** [November 1, 2018, 9:06am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/1 "2018-11-01T09:06:36Z")

</div>

Hello Postman-community!

I’m currently facing an issue regarding the Monitoring feature of the Postman that I couldn’t figure out somehow. When I run my collection which includes some POST Requests which contain a few tests that check some of the reponse content, this runs totally fine. Though, whenever I start a monitor with the same collection, I immediately run into the following error:

Error: getaddrinfo ENOTFOUND domainname domainname:portnumber

Does anyone know why this error might pop up? The domain that I’m testing is publicly available, so I’m kind of confused…

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![godfrzerp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/godfrzerp/32/11_2.png) [@godfrzerp](https://community.postman.com/u/godfrzerp)\
**Post date:** [November 1, 2018, 9:14am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/2 "2018-11-01T09:14:13Z")

</div>

Is the URL in question using environment variables for the domain/protocol/port or anything else that would be used for resolution? If so, is the environment being resolved correctly? You can check by logging the environment values.

---

<div class="post-metadata">

**Author:** ![mh92](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mh92](https://community.postman.com/u/mh92)\
**Post date:** [November 1, 2018, 9:17am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/3 "2018-11-01T09:17:55Z")

</div>

Hi godfrzero,

thanks for your fast reply! Apparently, I’m not using any environment variables in the collection at all… So the URL that I’m using within my requests is pretty much static…

---

<div class="post-metadata">

**Author:** ![godfrzerp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/godfrzerp/32/11_2.png) [@godfrzerp](https://community.postman.com/u/godfrzerp)\
**Post date:** [November 1, 2018, 9:27am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/4 "2018-11-01T09:27:05Z")

</div>

Ah, that’s weird. If it’s a URL you can share here, please do. If not, can you send us an email at [help@getpostman.com](mailto:help@getpostman.com), including the monitor ID, error message, and the URL you’re trying to hit?

---

<div class="post-metadata">

**Author:** ![habinprasad](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@habinprasad](https://community.postman.com/u/habinprasad)\
**Post date:** [May 14, 2019, 6:12am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/5 "2019-05-14T06:12:41Z")

</div>

Check if your URL path is having any space or unexpected character. Occurred with me because there was space.

---

<div class="post-metadata">

**Author:** ![jmofmc](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jmofmc](https://community.postman.com/u/jmofmc)\
**Post date:** [March 19, 2020, 9:43pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/6 "2020-03-19T21:43:24Z")

</div>

I know this is an old thread but we were getting this error on an API that was only for internal use. It should’ve been a no brainer but we were in a hurry and perplexed for a minute by it. Hope this helps! Thanks or the help on this one

---

<div class="post-metadata">

**Author:** ![gatuazon](https://avatars.discourse-cdn.com/v4/letter/g/c37758/32.png) [@gatuazon](https://community.postman.com/u/gatuazon)\
**Post date:** [June 27, 2020, 1:58am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/7 "2020-06-27T01:58:01Z")

</div>

Check the url server if its up .

---

<div class="post-metadata">

**Author:** ![swapnil4054](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/swapnil4054/32/4936_2.png) [@swapnil4054](https://community.postman.com/u/swapnil4054)\
**Post date:** [July 11, 2020, 10:20am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/8 "2020-07-11T10:20:09Z")

</div>

Hi @godfrzerp and @danny-dainton , I am running my collection using Newman and getting the error **getaddrinfo ENOTFOUND {{url}} at request inside “endpoint”** I already checked that there is no space in the environment variable.  
**Note:** It’s working properly in postman App.

---

<div class="post-metadata">

**Author:** ![godfrzerp](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/godfrzerp/32/11_2.png) [@godfrzerp](https://community.postman.com/u/godfrzerp)\
**Post date:** [July 13, 2020, 4:13am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/9 "2020-07-13T04:13:34Z")

</div>

Hey @swapnil4054, welcome to the community! 🙂

Since the URL in the error you’ve posted is still showing up as **{{url}}** , it looks like it’s not getting resolved at all. I’d recommend looking at how the environment is being referenced in the newman command.

Also, this particular thread relates to this error in the Monitoring product. You’re likely to get a more relevant answer (and an answer that’s easily discovered by other users facing the same problem) if you start a new thread regarding this.

Cheers!

---

<div class="post-metadata">

**Author:** ![swapnil4054](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/swapnil4054/32/4936_2.png) [@swapnil4054](https://community.postman.com/u/swapnil4054)\
**Post date:** [July 13, 2020, 4:26am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/10 "2020-07-13T04:26:13Z")

</div>

Thanks @godfrzerp I’ll create a new thread for this.

---

<div class="post-metadata">

**Author:** ![yankaspiegel](https://avatars.discourse-cdn.com/v4/letter/y/dfb087/32.png) [@yankaspiegel](https://community.postman.com/u/yankaspiegel)\
**Post date:** [July 27, 2020, 12:10pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/11 "2020-07-27T12:10:16Z")

</div>

@swapnil4054 you need to download the json file with environmental variables to your folder with collections.  
After that you run `newman run mycollection.json -e dev_environment.json` command where mycollection.json is the name of the collection and dev\_environment.json is the file with environmental variables.

---

<div class="post-metadata">

**Author:** ![roymrinal123](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@roymrinal123](https://community.postman.com/u/roymrinal123)\
**Post date:** [August 14, 2020, 12:42pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/12 "2020-08-14T12:42:18Z")

</div>

published iis api url -[https://kpayapi/api/Account/ValidateLogin?UserName=2010341&UserPassword=mfpl143&Module=1](https://kpayapi/api/Account/ValidateLogin?UserName=2010341&UserPassword=mfpl143&Module=1)

and iisexpress api url at runtime is -[https://localhost:44321/api/Account/ValidateLogin?UserName=2010341&UserPassword=mfpl143&Module=1](https://localhost:44321/api/Account/ValidateLogin?UserName=2010341&UserPassword=mfpl143&Module=1)

Where i have a mistake in published url got error Error: getaddrinfo ENOTFOUND kpayapi

---

<div class="post-metadata">

**Author:** ![R0drig0](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/r0drig0/32/9114_2.png) [@R0drig0](https://community.postman.com/u/R0drig0)\
**Post date:** [July 8, 2021, 12:33am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/13 "2021-07-08T00:33:34Z")

</div>

In my case, I had to remove the “https://” from server variable since endpoint is running self-signed certs in an air-gapped environment. Obviously HTTP is not recommended in production.

Here is an example using Horizon REST API Collection

 ![a785642da1cfa149e5bbacb967a85c13f9f20768](https://us1.discourse-cdn.com/getpostman/original/3X/5/b/5b75c359c3f09342a5ccd5a9cb293bbfa74fb453.png)

---

<div class="post-metadata">

**Author:** ![ziziiszizi](https://avatars.discourse-cdn.com/v4/letter/z/e0b2c6/32.png) [@ziziiszizi](https://community.postman.com/u/ziziiszizi)\
**Post date:** [September 23, 2021, 3:50am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/14 "2021-09-23T03:50:21Z")

</div>

If you are using environment variable, check twice the variable value, make sure the url does not contain any space or enter value.

---

<div class="post-metadata">

**Author:** ![jt1](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jt1](https://community.postman.com/u/jt1)\
**Post date:** [December 1, 2021, 4:17pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/15 "2021-12-01T16:17:20Z")

</div>

Having issues with this since like version 9. As soon as a DNS changes i get this error and it requires a restart of my computer to fix it… did you change the request logic or node version?

---

<div class="post-metadata">

**Author:** ![Bagher\_solimany](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bagher\_solimany](https://community.postman.com/u/Bagher_solimany)\
**Post date:** [January 9, 2022, 11:59am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/16 "2022-01-09T11:59:30Z")

</div>

@R0drig0  
thank you so muc , it solved my problem, you just need to set the URL variable with out https://

---

<div class="post-metadata">

**Author:** ![z03](https://avatars.discourse-cdn.com/v4/letter/z/5f8ce5/32.png) [@z03](https://community.postman.com/u/z03)\
**Post date:** [April 18, 2022, 11:38am UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/17 "2022-04-18T11:38:57Z")

</div>

Thank you so much brother

---

<div class="post-metadata">

**Author:** ![huongorianna](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@huongorianna](https://community.postman.com/u/huongorianna)\
**Post date:** [April 13, 2023, 3:41pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/18 "2023-04-13T15:41:31Z")

</div>

![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/0/0093bfc9c971cecf00419489539c95da6a9e1d06.png)  
check it.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 27, 2023, 2:35pm UTC](https://community.postman.com/t/postman-monitor-error-getaddrinfo-enotfound/3149/19 "2023-09-27T14:35:16Z")

</div>


