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

79
Views
La respuesta de Firebase no es un objeto JSON válido

Estoy creando una aplicación React Native con Firebase y durante la noche recibí un error que decía: la response is not valid JSON object
Como no cambié absolutamente nada y funcionó justo antes de irme a dormir, no tengo idea de lo que sucedió.

En mi código se ve así:

 const getPosts = FireApp.functions().httpsCallable("getPosts"); let res = await getPosts();

Revisé la respuesta de la función antes de enviarla, pero es solo JSON

 let response = JSON.stringify(items); return response;
about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

¿Intentó establecer su región en su cliente?

Como esto:

 const getPosts = FireApp.functions("europe-west1").httpsCallable("getPosts"); let res = await getPosts();

Cambie europe-west1 por su región.

Esto debe hacerse si su función no está alojada en la región predeterminada de EE. UU.

about 4 years ago · Santiago Trujillo Report

0

No hice nada y ahora funciona bien...

about 4 years ago · Santiago Trujillo 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!