MaxListenersExceededWarning: Possible EventEmitter memory leak detected
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
-
Is this a client library issue or a product issue? This issue is related to the client library for Node.js.
-
Did someone already solve this?
- This issue is solved in [email protected].
- Do you have a support contract? No.
If the support paths suggested above still do not result in a resolution, please provide the following details.
Environment details
- OS: Windows 11
- Node.js version: 20.7.0
- npm version: 10.1.0
-
gax-nodejsversion: 3.6.1
Steps to reproduce
- Upgrade Node.js to version 20.7.0 while having some packages in your project that depend on a version of node-fetch prior to 3.2.5.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
As a side note, node-fetch's versions up until 3.2.10 also suffer from a Regular Expression Denial of Service bug (as stated here). Therefore, my suggestion would be to upgrade node-fetch to version 3.2.10 or later.