grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.37k stars 117 forks source link

MaxListenersExceededWarning on Node.js v12 #631

Closed iyudincev closed 1 week ago

iyudincev commented 2 months ago

A bot running on Node.js v12.22 prints the following warning in console after sending a few messages:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
KnorpelSenf commented 2 months ago

What's the code?

iyudincev commented 2 months ago

What's the code?

Any example will do; for instance, https://github.com/grammyjs/examples/blob/main/echo.ts

KnorpelSenf commented 1 month ago

I cannot reproduce this with Node 12.22.12 and grammY 1.30.0. I sent a few hundred messages without seeing the warning. You likely need to provide more info

KnorpelSenf commented 1 week ago

Closing due to inactivity.