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

83
Views
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 answers
Answer question

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 Report

0

Done nothing and now it works just fine...

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!