0

While running the backend of the Apache AGE Cloud Express repository,

link

using the command

node index.js

It throws errors:

<---Server is running on port 4000 --->
Database Connection Failed: querySrv ENODATA _mongodb._tcp.cloud-express.le2yrog.mongodb.net age

I have added the .env file with the required details, but it's still giving this error.

Note: I am using Linux (Ubuntu)

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Kamlesh Kumar
  • 351
  • 1
  • 7

1 Answers1

0

I found the answer to it. The server is active on port 4000 but the error occurs when it tries to connect to the database at "_mongodb._tcp.cloud-express.le2yrog.mongodb.net". This issue was related to some unknown network configuration. When I switched to using my personal network/mobile data instead of the university's network data, the error disappeared automatically.

Kamlesh Kumar
  • 351
  • 1
  • 7