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

(node:13999) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 reconnect listeners added to [Db]. Use emitter.setMaxListeners() to increase limit #262

Open
rishabh-deligence opened this issue May 23, 2021 · 0 comments

Comments

@rishabh-deligence
Copy link

rishabh-deligence commented May 23, 2021

I'm getting this warning once I pass DbService in more than 9 services.

Possible EventEmitter memory leak detected. 11 reconnect listeners added to [Db]. Use emitter.setMaxListeners() to increase limit

 const DbService = require("moleculer-db");
 const Characters = require("../models/character.model");
 const MongooseAdapter = require("moleculer-db-adapter-mongoose");
 
 module.exports = {
	 name: "characters",
	 mixins: [DbService],
	 adapter: new MongooseAdapter(process.env.MONGO_URI),
	 model: Characters,
 }
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

No branches or pull requests

1 participant