Trying to connect to a glitch app to a mongo database,
seeing this in console. what clues does this give me to solve the problem?
Is there anything in this line that would tell me why its not connecting:
(node:1800) UnhandledPromiseRejectionWarning: MongoNetworkError: connection 5 to cluster0-shard-00-02-6klo8.mongodb.net:27017 closed
Here are the full logs:
Could not find node 4.4.5, using 10
Could not find node 4.4.5, using 10
ππ Your app is listening on port 3000
(node:1800) UnhandledPromiseRejectionWarning: MongoNetworkError: connection 5 to cluster0-shard-00-02-6klo8.mongodb.net:27017 closed
at TLSSocket.<anonymous> (/rbd/pnpm-volume/b8aadfda-2984-4ae2-a646-9946a9630382/node_modules/.registry.npmjs.org/mongodb-core/3.2.5/node_modules/mongodb-core/lib/connection/connection.js:352:9)
at Object.onceWrapper (events.js:277:13)
at TLSSocket.emit (events.js:189:13)
at _handle.close (net.js:597:12)
at TCP.done (_tls_wrap.js:388:7)
(node:1800) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1800) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.