-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bubble up 'reconnectFailed' event #48
Comments
Did you pass a callback to the MongoDBStore constructor to catch errors? I'd assume you'd want to handle there. |
For the initial connection, you might need to do a process.exit() in the constructor's callback and get whatever is running your program to automatically restart it. For subsequent errors it seems like you can pass in something like |
@goliatone is this error on initial connection? Or after the store is successfully running? |
@vkarpov15 it happens after the app is running for a while. |
Try setting |
I'm getting the following error:
I want to reconnect but currently the store creates the connection in the constructor and exposes no method. How are we supposed to handle reconnections?
The text was updated successfully, but these errors were encountered: