I am tryping to deploey a MERN project on cpanel. Everything working fine on my localhost, but getting this error in my "stderr.log" log.
- I tried to restart the server again.
- Allowed access from anywhere on my atlas
I am tryping to deploey a MERN project on cpanel. Everything working fine on my localhost, but getting this error in my "stderr.log" log.
Copyright © 2021 Jogjafile Inc.
hey i found the solution!! i solved the issue by edit my connection string ----> "mongodb+srv://username:[email protected]/" this as --------------> "mongodb://username:[email protected]:27017,ac-5jfoqgk-shard-00-01.yalzkc2.mongodb.net:27017,ac-5jfoqgk-shard-00-02.yalzkc2.mongodb.net:27017/?ssl=true&replicaSet=atlas-lfxg2j-shard-0&authSource=admin&retryWrites=true&w=majority"
You can do this by going to your atlas
enter image description here
AND YOUR PROBLEM IS SOLVED