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

114
Views
La solicitud de publicación en las funciones de la nube de firebase da el error 500

Tengo una solicitud POST a Cloud Functions en Firebase. Cuando intento realizar una solicitud, aparece un error de política de CORS. Ok, configuré el modo: 'no-cors' y obtengo Failed to load resource: the server responded with a status of 500 () .

Aquí está el código

 let myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); myHeaders.append("Accept", "application/json"); let raw = JSON.stringify({ "description": "Test item", "email": "testemail@gmail.com" }); let requestOptions = { method: 'POST', headers: myHeaders, body: raw, mode: 'no-cors', redirect: 'follow', }; fetch("https://someURl.cloudfunctions.net/someRequest", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));

El código está copiado de Postman.

¿Algunas ideas?

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

0

Según lo confirmado por jaba , el problema estaba en el lado del servidor. Además, lo mismo ha sido documentado aquí .

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!