You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{fetch}from'got-fetch';letresponse=awaitfetch('https://www.youtube.com');for(leti=0;i<1000;i++){response=awaitfetch('https://www.youtube.com');}// (node:40746) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Keyv]. // Use emitter.setMaxListeners() to increase limit// (Use `node --trace-warnings ...` to show where the warning was created)
The text was updated successfully, but these errors were encountered:
By default
got-fetch
adds a simpleMap
cache to thegot
options which is currently buggy ingot
.Perhaps we could provide a way to turn the cache option off until it is fixed.
Related to sindresorhus/got#1128 sindresorhus/got#1523
The text was updated successfully, but these errors were encountered: