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

133
Views
Omita las URL inaccesibles en la llamada de búsqueda de Axios

Llamo a un rango de IP con axios para obtener algunos json. Algunas direcciones IP no son accesibles y esto es de esperar. ¿Cómo puedo omitirlos y continuar con showOutput(responding_IPs) ?

 ip_range = [ "10.0.0.1", "10.0.0.2", "10.0.0.3" ]; // hard-coded as example let promiseArray = ip_range.map(url => axios.get('http://' + url + '/settings')); axios.all(promiseArray) .then(res => showOutput(res, ip_range)) .catch(err => console.error("Error: At least one IP is not reachable"));

Si es necesario que haya un temporizador, 2 segundos serían suficientes.

Por cierto, quiero cambiar desde then para await en el siguiente paso.

about 4 years ago · Juan Pablo Isaza
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!