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

287
Views
No se puede hacer que funcione el código simple de obtención del clima

estoy usando el siguiente código

 try { const response = await fetch(endpoint); if(response.ok) { jsonResponse = await response.json(); return jsonResponse; } } catch(error) { console.log(error.message); }

para obtener información meteorológica de openweathermap. Cuando ejecuto el programa localmente en mi computadora o uso un servidor local con VSC, obtengo un "NetworkError cuando intento obtener un recurso". error capturado. Cuando ingreso la URL ( https://api.openweathermap.org/data/2.5/weather?q=Madrid&appid=... ) directamente en el navegador web, me muestra el contenido sin ningún problema. No puedo por mi vida darme cuenta de lo que estoy haciendo mal. ¿Qué me estoy perdiendo? (al enlace le falta la clave api por razones obvias, pero está escrito correctamente en el código)

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!