Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple calls to a method that uses HttpClient.send causes MaxListenersExceededWarning (Node.js 19.1.0) #1995

Closed
dwirz opened this issue Nov 30, 2022 · 2 comments

Comments

@dwirz
Copy link
Contributor

dwirz commented Nov 30, 2022

Environment

  • Operating System version: alpine 3.16
  • Firebase SDK version: 11.3.0
  • Firebase Product: auth (but potentially others as well)
  • Node.js version: 19.1.0
  • NPM version: 8.19.3

Steps to reproduce:

  1. Call for example Auth.getUser() multiple times
  2. Node.js logs a MaxListenersExceededWarning message

Relevant Code:

const auth = getAuth();
for (let index = 0; index < 20; index++) {
  await auth.getUser('some-id');
}

Additional Information

see #1993

@dwirz dwirz changed the title Calling a method which uses HttpClient.send under the hood multiple times in a row leads to MaxListenersExceededWarning (Node.js 19.1.0) Multiple calls to a method that uses HttpClient.send causes MaxListenersExceededWarning (Node.js 19.1.0) Dec 1, 2022
@lahirumaramba lahirumaramba self-assigned this Dec 1, 2022
@lahirumaramba
Copy link
Member

Thank you @dwirz for flagging this issue and thank you for your PR! Let's discuss on the PR thread.

@lahirumaramba
Copy link
Member

Fixed in #1993
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants