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

208
Vistas
(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 Respuestas
Responde la pregunta

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 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