**Error: getaddrinfo ENOTFOUND {{host}}**

Error: getaddrinfo ENOTFOUND {{host}}

Hi @SabriH ,

I am getting exactly same error for below command

POST : http://{{host}}/api/v1/oauth/token.json

I am not able to find variable {{HOST}}, which I didn’t define.


Please respond or suggest something.


Hi @maneabhishek,

There isn’t much information to go on here, but I found this: https://explore.postman.com/api/74/healthos is this the one you are referring to? I tried to import the collection and also saw this as well:

If it’s red it means the variable is unresolved so, generally, either they’d include an environment for you to import ( which doesn’t seem to be the case here ) or expect you to define a variable, in this case, host, with the appropriate domain or host for the API.

According to their documentation here: https://documenter.getpostman.com/view/3967924/RW1Yq1oQ?version=latest#46bc8a1a-a558-c119-c212-7bbcec842b0f they expect you to create an App before getting started but it looks like the link they included is broken, so perhaps they haven’t updated their docs recently.

For more information about the syntax, and understanding variables, the following documentation should help: https://learning.postman.com/docs/postman/variables-and-environments/variables/#understanding-variables