You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ECONNRESET connecting to Firebase auth emulator from functions emulator with grpc imported #945
I’m not sure that the root cause of this issue is, but this repo seems like the most likely culprit. Other possibilities: gRPC, firebase-tools, firebase-functions.
Within a Python cloud function that has grpc or firebase_admin.firestore imported, call an auth method, e.g. auth.create_user(...), or make a GET request to the auth endpoint, e.g. requests.get("http://127.0.0.1:9099/", timeout=1).
The function will fail with ECONNRESET (“Error: socket hang up”).
Relevant Code:
Simplified example (see the repo above for a functional example):
fromfirebase_adminimportinitialize_appfromfirebase_functionsimporthttps_fnimportrequestsimportgrpc# or, import firebase_admin.firestoreinitialize_app()
@https_fn.on_call()defconnect(req):
# Make a simple GET request to the auth emulator endpoint:returnrepr(requests.get("http://127.0.0.1:9099/", timeout=1))
Similar thing here. This code fails in auth.verify_id_token (there's not something explicitly telling that it failed. I just never see the print('4')) when calling process_stuff through firebase emulators:start --only functions and get the error below:
> objc[60961]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
> objc[60961]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
i Request to function failed: Error: read ECONNRESET
> [2026-05-15 18:57:32 +0000] [60960] [ERROR] Worker (pid:60961) was sent SIGKILL! Perhaps out of memory?
I guess it's not memory related as there's more than 7 GB of free memory when the error triggers.
I got the ECONNRESET (“Error: socket hang up”) a couple of times too, but not sure with which version of firebase-admin it was as I was testing with 7.2.0 and 7.0.4 .
Activity
bryancalisto commentedon May 15, 2026
Similar thing here. This code fails in
auth.verify_id_token(there's not something explicitly telling that it failed. I just never see theprint('4')) when callingprocess_stuffthroughfirebase emulators:start --only functionsand get the error below:ERRORS:
I guess it's not memory related as there's more than 7 GB of free memory when the error triggers.
I got the
ECONNRESET (“Error: socket hang up”)a couple of times too, but not sure with which version of firebase-admin it was as I was testing with 7.2.0 and 7.0.4 .My requirements.txt looks like
firebase-tools version is
15.18.0Python version is 3.11.14.
My system runs macos Tahoe 26.3.1 (M4).