CR Rollyson
2 min readOct 26, 2024

Postman Hubspot Error: getaddrinfo ENOTFOUND api.hubapi.com

Feels like it’s shouting doesn’t it.

Not technically a Hubspot error, this is an error you may encounter in Postman when making a request to the Hubspot API endpoint, and it could be simple to fix:

Assuming you are using a postman saved variable for the base URL to Hubspot’s API, setting https://api.hubapi.com as {{baseUrl}} (your variable name can be anything)

What that might look like:

If you copy/paste things as you’re flying through the fun work you do, there is a chance you add an extra character, like your friend did:

Error Appears As:

That extra closing bracket translates the root URL to this “https://api.hubapi.com}” and obviously that’s no good.

Solved

Check the request path. My brain saw “getaddrinfo” and immediately thought it was looking for a contact address.

Hope this helps √

I’ll be doing a series of Hubspot API shorts as I’m working through Custom Objects.

CR Rollyson
CR Rollyson

Written by CR Rollyson

UX & Web mgr for a S&P 500 Fintech & COO of Side Role, a marketing team partnering w In-house Teams & Agencies, Non-profits, & Start-Ups. https://siderole.com

No responses yet