TillaTheHun0
TillaTheHun013mo ago

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 ...
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 ...
GitHub
GitHub - TillaTheHun0/deno-mongo-atlas-repro
Contribute to TillaTheHun0/deno-mongo-atlas-repro development by creating an account on GitHub.
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...
1 Reply
Kevin Whinnery
Kevin Whinnery13mo ago
Thanks for taking the time to put together a sample app to reproduce - I can flag it for the team.