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

541
Views
La API de NextJS se resolvió sin enviar una respuesta

Estoy aprendiendo sobre getServerSideProps, tengo un archivo 'hello.js' en pages/api/hello.js y el código es:

 function Hello({ data }) { return ( <> <h1>{data}</h1> </> ) } // This gets called on every request export async function getServerSideProps() { // Fetch data from external API const res = await fetch(`https://ergast.com/api/f1/2021/drivers.json`) const data = await res.json() // Pass data to the page via props return { props: { data } } } export default Hello

No puedo acceder a la página debido al siguiente error: la API se resolvió sin enviar una respuesta para /api/hello, esto puede resultar en solicitudes estancadas.

El código se tomó de aquí con algunos ajustes: https://nextjs.org/docs/basic-features/data-fetching/get-server-side-props

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!