Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

81
Vistas
Firebase response is not valid JSON object

I'm building a React Native App with firebase and over night I got error saying: response is not valid JSON object
Since I changed absolutely nothing and it worked just before I went to sleep I have seriously no idea what happend.

In my code it looks like this:

const getPosts = FireApp.functions().httpsCallable("getPosts");

let res = await getPosts();

I checked the function response before it is send, but it is just JSON

let response = JSON.stringify(items);
return response;
about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Did you try set your region in your client?

Like this:

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

let res = await getPosts();

Change europe-west1 by your region.

This has to be done if your function isn't hosted in the default US region.

about 4 years ago · Santiago Trujillo Denunciar

0

Done nothing and now it works just fine...

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda