DenoDDeno
Powered by
tillaT
Deno•3y ago•
1 reply
tilla

Node MongoDB Driver on Deno dropping connection and crashing process

Heya folks. I am encountering the most recent error described in this thread https://github.com/denoland/deno/issues/16633

According to https://github.com/denoland/deno/issues/19078#issuecomment-1542955089 , I might be encountering the same problem as https://github.com/denoland/rusty_v8/issues/1226 (though I don't anything confirming that, just going off the comment)

I created a minimal reproduction repo here: https://github.com/TillaTheHun0/deno-mongo-atlas-repro

TL;DR: consuming a MongoDB Atlas Cluster, via the node driver and Deno's npm compat, seems to work fine at first, but after a while a TCP connection to Mongo is closed unexpectedly, causing the entire Deno process to crash.
GitHub
MongoDB Node.js Driver doesn't work when connecting to MongoDB Atla...
Potentially related to issue #15824, but the mongodb driver cannot be used directly via Deno when targeting a MongoDB Atlas cluster. This was reported at NODE-4782 however it doesn't appear to ...
MongoDB Node.js Driver doesn't work when connecting to MongoDB Atla...
GitHub
Exceptions thrown across boundaries behave differently on Win/Linux...
Consider this simple example of having a rust print function that calls a repr function on passed objects. As repr can be arbitrary Js code, it could throw an exception. Since the exception occurs ...
Exceptions thrown across boundaries behave differently on Win/Linux...
GitHub
GitHub - TillaTheHun0/deno-mongo-atlas-repro
Contribute to TillaTheHun0/deno-mongo-atlas-repro development by creating an account on GitHub.
GitHub - TillaTheHun0/deno-mongo-atlas-repro
GitHub
error: Uncaught Error: read ECONNRESET · Issue #19078 · denoland/de...
Despite access npm:mongodb in try/catch, runtime is throwing Uncaught error, whenever db drops the connection. error: Uncaught Error: read ECONNRESET at node_internal_captureLargerStackTrace (ext:d...
error: Uncaught Error: read ECONNRESET · Issue #19078 · denoland/de...
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

MongoDB connection error on Deno Deploy
tas13Ttas13 / help
3y ago
Deno and `npm:mongodb` problem with `node:`?
abiAabi / help
3y ago
Restart Deno process on crash
KaKi87KKaKi87 / help
3y ago