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

146
Views
Tener problemas para obtener datos de la llamada api

Hola chicos, estoy haciendo una llamada api y obteniendo una respuesta que aún no he encontrado. mi llamada api es básica y parece

 async function getStudents(){ const response = await fetch('url'); const studentData = response.json(); console.log(studentData)

Promesa { : "pendiente" } : "cumplida" : Objeto { estudiantes: (25) […] }

y estos son los resultados que obtengo, normalmente podría hacer algo como studentData.students para obtener ese objeto, pero nada parece obtener el objeto correcto. ¿Qué estoy haciendo mal?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Usa algo como esto:

 async function getStudents(){ fetch('url') .then(response => response.json()) .then(data => console.log(data)); .catch(error=>console.log(error,"error occured")); }
about 4 years ago · Juan Pablo Isaza 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!