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
This is a basic part of Javascript and Node.js. Please study Errors | Node.js v23.5.0 Documentation
2 Likes