MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 done listeners added

I’m getting following error occasionally when I’m in dev console. I have not seen this generated yet in app log once published as custom app.

(node:89210) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 done listeners added. Use emitter.setMaxListeners() to increase limit

I have a number of REST API calls I make - all using $requests in serverless app. I don’t do anything specific to cleanup but I did not think this was needed. I have not tried to build a simple repro app but just first thought I’d ask if this is exepected and normal (and ignorable).

Hi Steve,
This is a warning and should go away once you restart fdk server. Also, is this causing any issue while testing locally?

Yes, issue does go away when restarting fdk server and I have not observed it to cause any issues. I just wanted to find out if it was a problem with my code.

1 Like

It is not an issue with your code.

2 Likes