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.114 Replies
Project ID:
N/A
N/A
Hello this is screenshot of deploy logs
try disabling the private network
how can I do that?
from the service settings
It doesnt seem to be on
then its looking like you have a code issue
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
you would need an environment variable for mongo, yes
Do you know what I should put in the variable i do not remember exactly
likely the mongo url
then you would want to use that environment vairable in code to connect