Error in connecting to MongoDB Atlas

MongoServerSelectionError: connect ECONNREFUSED

Dec 10 12:57:45 AM at Timeout._onTimeout (/opt/render/project/src/node_modules/mongodb/lib/sdam/topology.js:278:38)

Dec 10 12:57:45 AM at listOnTimeout (node:internal/timers:573:17)

Dec 10 12:57:45 AM at process.processTimers (node:internal/timers:514:7)

Hey there, there is localhost, ie where your code is actually running - you need to configure your application to point at the MongoDB Atlas URL,


John B
Render Support, UTC :uk:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.