Hi there,
On Sunday, July 26, 2020 at 2:09:29 AM UTC+2, Aman Kr Sharma wrote:
>
>
>
> (node:94165) DeprecationWarning: current Server Discovery and Monitoring
> engine is deprecated, and will be removed in a future version. To use the
> new Server Discover and Monitoring engine, pass option {
> useUnifiedTopology: true } to the MongoClient constructor.
> (Use `node --trace-deprecation ...` to show where the warning was created)
> MongoNetworkError: failed to connect to server [
> cluster0-shard-00-00.lpcoo.mongodb.net:27017] on first connect
> [MongoNetworkError: connection 5 to
> cluster0-shard-00-00.lpcoo.mongodb.net:27017 closed
>
>
What is your exact connection string? If you just pass
"cluster0-shard-00-00.lpcoo.mongodb.net:27017", try adding `mongodb://`
before it. But MongoNetworkError seems to indicate that your _server_ is
either down or unreachable. Can you reach it from another MongoDB client?
Is the error only in your app?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/90f783fa-e18a-4cd0-86bc-7f0dd8b8d0b8o%40googlegroups.com.