node.jsmongodbmernrender.com

Error connecting to MongoDB on Render.com: MongooseServerSelectionError


I'm trying to deploy my Node.js application on Render.com, but I'm encountering an error when connecting to MongoDB. Here are the details:

I'm not sure why the connection is failing on Render.com but works fine locally. Any insights or suggestions on how to troubleshoot and resolve this issue would be greatly appreciated.

Here is the link to both my Frontend and Backend repository:

https://github.com/aarontauro/iNotebook-Frontend

https://github.com/aarontauro/iNotebook-Backend

Thank you in advance for your help!


Solution

  • I faced the same issue. You can try this: