When i try to establis mongodb connection withe the following code
await client.connect()
I get following error sometimes
MongoNetworkError: connect ETIMEDOUT 157.241.57.57:27017
the app crashes
how can resolve this issue
Skip to main content
This is a basic part of Javascript and Node.js. Please study Errors | Node.js v23.5.0 Documentation
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
We have a 3-node MongoDB replica set cluster deployed via Ops Manager with TLS enabled. Our Node.js application can only connect when the first node is the primary. When the primary node switches to another node, the application fails to connect. | 0 | 205 | Jul 2024 |
Nodejs not able to connect mongodb | 0 | 215 | Jul 2024 |
using mongodb to store application logs vs RDBMS | 0 | 57 | Oct 2024 |
How to get mongo snapshot details from mongo ops mgr api | 1 | 28 | Feb 24 |
tSQL migration from SQL Server | 0 | 24 | Feb 26 |