nswbmw / koa-mongo

MongoDB middleware for koa, support connection pool.
145 stars 31 forks source link

MongoTimeoutError: Server selection timed out after 30000 ms #43

Closed ghost closed 4 years ago

ghost commented 4 years ago

Recent update to v1.9.0 added { useUnifiedTopology: true } option as default and it seems it can cause this issue ("MongoTimeoutError: Server selection timed out after 30000 ms"). According to this discussion, updating mongodb native driver to v3.3.4 may fix the issue, although I'm not sure if this really relates to my exact case. Could you update mongodb version to 3.3.4 or even up to the latest 3.4.0?