Tuesday, 14 February 2023

Running cloud function locally from emulator

I am sucessfully running local cloud function from postman with this url:

http://127.0.0.1:5001/spotnik-7de37/us-central1/getUsers

But on my app using:

val functions = Firebase.functions
functions.useEmulator("127.0.0.1", 5001)
//functions.useEmulator("10.0.2.2", 5001) //Also tested this
functions.getHttpsCallable("http://127.0.0.1:5001/spotnik-7de37/us-central1/getUsers")

I get: Failed com.google.firebase.functions.FirebaseFunctionsException: INTERNAL



from Running cloud function locally from emulator

No comments:

Post a Comment