Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

88
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

0

Done nothing and now it works just fine...

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda