1

I am facing an error while fetching data from MongoDB using node & express. I am sharing two screenshots. One is an error message and another one is a code snippet.

enter image description here

enter image description here

hhhameem
  • 51
  • 6
  • 1
    does this help https://github.com/Automattic/mongoose/issues/8811 – cmgchess Jan 04 '22 at 16:49
  • 1
    The error message is not clear in your screenshot. I think it has to do something with the connection string uri format you are using for connecting to a remote cluster. – prasad_ Jan 04 '22 at 16:50
  • @prasad_ finally solved the problem. Thank you for your comment. – hhhameem Jan 04 '22 at 17:07
  • Check this out https://stackoverflow.com/questions/68875026/error-querysrv-eservfail-mongodb-tcp-cluster0-abcd0-mongodb-net – codedump Jan 04 '22 at 17:09

0 Answers0