Error in connecting to MongoDB Atlas

MongoServerSelectionError: connect ECONNREFUSED 0.0.0.0:27017

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,

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

Regards,

John B
Render Support, UTC :uk:

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