Open pb-jeff-oneill opened 5 months ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
It seems to be IPv4/IPv6 related because changing from localhost
to 127.0.0.1
fixes it.
What ever the cause, it seems that it shouldn't cause auth.get_user_by_email()
to hang.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
This problem started around June 1. Before, I have been doing this for several years without any issues.
The problem is that
auth.get_user_by_email()
freezes and it is caused by some interaction with running the cloud datastore emulator locally. This happens with either the older emulator (gcloud beta emulators datastore start
) or the newer one (gcloud emulators firestore start
). I have tried downgradinggcloud
and two versions of firebase-admin listed above.Run the script below. At
auth.get_user_by_email()
, the script hangs indefinitely with no output. You can't even ctrl-c to stop the script. You need tokill -9
in a separate terminal window.If you comment out the three lines starting with
with datastore_client.context():
, thenauth.get_user_by_email()
works.Since the code just freezes, I am at a loss as to how to debug.
Relevant Code: