Getting Error code: EAI_AGAIN at node_modules/firebase-admin/lib/utils/api-request.js:178:19 #2001
dhirajgagrai
started this conversation in
General
Replies: 1 comment
-
Figured it out. There was an environment variable FIREBASE_AUTH_EMULATOR_HOST. Instead of deleting this variable in production, I set it to undefined. This meant the variable was still there and was read by the SDK. So, instead of the firebase's API, requests were sent to the emulator's API. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For context, I am using the method
createUser()
and this error is being caught. The emulator doesn't throw any errors.The response I am getting contains this message "Error: Error while making request: getaddrinfo EAI_AGAIN undefined. Error code: EAI_AGAIN". I contacted firebase support through email and they suggested me this:
Sometimes network restrictions could restrict the access to some Firebase services, it would be good to double check if there are any other programs that might be blocking the connection such as antivirus, proxy or firewall. Also, verify the problem in different networks and internet providers.
I don't remember ever changing this in my EC2 server.
So, I tried to run the program locally through my machine but it gives the same error message. I didn't have this issue 1 month earlier.
I've also tried different service accounts, created new projects, and used new keys.
Edit: Can anyone point me in the right direction because I don't know what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions