Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.2K
Views
axios post requests - Error: getaddrinfo ENOTFOUND

I'm using axios inside a cli node script. I've noticed that sometimes inside the console this error will be logged:

Error: getaddrinfo ENOTFOUND www.foobar.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:67:26) {
  errno: -3008,
  code: 'ENOTFOUND',

It will be handled by the .catch() function and the next axios request to the same address will continue work and I get 200 status code. Is there any reason that cause that a axios.post request can generate that error?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

As @Javapocalypse commented, you should add http:// beginning of your url.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!