Agenda: DeprecationWarnings: autoReconnect, reconnectTries, reconnectInterval

Created on 21 Feb 2020  路  3Comments  路  Source: agenda/agenda

I'm using the Docker Image mongo:3.6 and switched the "useUnifiedTopology" parameter to true as advised. If I do so I get the following deprecation warnings:

(node:51) DeprecationWarning: The option autoReconnect is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
(node:51) DeprecationWarning: The option reconnectTries is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
(node:51) DeprecationWarning: The option reconnectInterval is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6

An easy fix would be, to not set those three, if "useUnifiedTopology" is handed over as option to the database.js

Most helpful comment

database.js.txt

This works, let me know if you want a PR.

All 3 comments

database.js.txt

This works, let me know if you want a PR.

I was having the same problem, but your database.js file works! Thanks @ekegodigital

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mKontakis picture mKontakis  路  3Comments

adamhalasz picture adamhalasz  路  3Comments

mavvverick picture mavvverick  路  3Comments

exislow picture exislow  路  5Comments

niftylettuce picture niftylettuce  路  6Comments