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

Using node-fetch library instead of the request library #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikaera
Copy link

@nikaera nikaera commented May 9, 2020

I have encountered the following errors during the development.

(node:2493) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added to [Request]. Use emitter.setMaxListeners() to increase limit

I was googling to find a solution and found that the request library has been deprecated.
https://github.com/request/request#deprecated

So instead of using the request library, I modified it to use the node-fetch library, which is similar to the request library. And when I changed the library to node-fetch, the error does not occur anymore.

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

Successfully merging this pull request may close these issues.

1 participant