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

206
Views
(ERROR: internal) Testing Firebase functions using React Native Expo

I'm trying to test my firebase functions in my React Native Expo app. Here's my initialization code:

import { connectFunctionsEmulator, getFunctions } from 'firebase/functions'

// ...Initialize app 

export const fucntions = getFunctions()
connectFunctionsEmulator(fucntions, "localhost", 5001)

I then have code which maps functions in an object:

import { httpsCallable } from "firebase/functions";
import { fucntions } from "../../firebase";

export default {
    helloFirebase: httpsCallable(fucntions, "helloFirebase")
}

And I call the function as follows:

functionsObj.helloFirebase({ myParam: "Hello!" })
    .then((res) => {
        console.log(res)
    })
    .catch((error) => {
        console.log(error.message)
    })

But when I call the function I get the following, very small and unspecific error message in the console:

ERROR: internal

I'm guessing it's something to do with not being able to access localhost, but I still don't know how to fix the issue.

Any help would be appreciated, thanks!

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

0

FIXED: I found this article on this exact issue.

Make sure to run firebase serve --only functions -o ${YOUR_LOCAL_IP} once you've followed all the steps

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!