R
Railway8mo ago
eg102

Deployment error log

Trying to deploy site this is what I'm receiving on repeat: (node:1) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) /app/node_modules/mongodb/lib/utils.js:687 throw error; ^ Error: querySrv ENOTFOUND _mongodb._tcp.cluster0.zdkrf.mongodb.net at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/callback_resolver:47:19) { errno: undefined, code: 'ENOTFOUND', syscall: 'querySrv', hostname: '_mongodb._tcp.cluster0.zdkrf.mongodb.net' } Node.js v18.17.1
14 Replies
Percy
Percy8mo ago
Project ID: N/A
eg102
eg1028mo ago
N/A
eg102
eg1028mo ago
No description
eg102
eg1028mo ago
Hello this is screenshot of deploy logs
Brody
Brody8mo ago
try disabling the private network
eg102
eg1028mo ago
how can I do that?
Brody
Brody8mo ago
from the service settings
eg102
eg1028mo ago
No description
eg102
eg1028mo ago
It doesnt seem to be on
Brody
Brody8mo ago
then its looking like you have a code issue
eg102
eg1028mo ago
Do you have idea of what it can be, do I have to make environment varible for mongo im not sure but I think i did that when I deployed before This exact code it worked befor
Brody
Brody8mo ago
you would need an environment variable for mongo, yes
eg102
eg1028mo ago
Do you know what I should put in the variable i do not remember exactly
Brody
Brody8mo ago
likely the mongo url then you would want to use that environment vairable in code to connect