mongodb #2721
Replies: 11 comments 37 replies
-
@xofyarg reported an issue on the unenv repo which @pi0 fixed. It should be integrated in unenv with cloudflare/workers-sdk#6920 |
Beta Was this translation helpful? Give feedback.
-
it's been forever now... I can't remember when I encountered this the first time but it must be at least 2 years ago. thanks! |
Beta Was this translation helpful? Give feedback.
-
I saw the thread on the forum which says that the only problem is that workers don't support TLS |
Beta Was this translation helpful? Give feedback.
-
I've started a new Mongodb instance, and I can't use it with my Cloudflare workers; I want to use a Cloudflare environment with queues, kv, etc., but I can't use it if workers don't actually work... |
Beta Was this translation helpful? Give feedback.
-
December 6th |
Beta Was this translation helpful? Give feedback.
-
How can one use mongodb on Workers, now that node:net is merged? |
Beta Was this translation helpful? Give feedback.
-
As promised, here is an update: workerd now implements wrangler 3.106 which was just released contains the latest version of Meaning that you should be able to use Please test and report your experiences! 🙏 edit: You need to use the I have tested with: # wrangler.toml
compatibility_date = "2024-12-05"
compatibility_flags = ["nodejs_compat"] |
Beta Was this translation helpful? Give feedback.
-
/cc @alexbevi ☝️ |
Beta Was this translation helpful? Give feedback.
-
The moment i finally give up and switch to D1 from mongo you release THIS. But big thank you for finally doing this!! |
Beta Was this translation helpful? Give feedback.
-
I want to raise another related issue. First off there is a workaround see: mongodb polyfill Another important point: @alexbevi, seeing as you are from Mongodb, do you have any insight about this error, have you encountered it? The Finally I'm not the only one that is getting these errors, see polyfill issue 4 |
Beta Was this translation helpful? Give feedback.
-
The
mongodb
does not work even withnode_compat_v2
on.It can be imported, but it does not properly connect to a DB. The package relies on
net.Socket
andtls.TLSSocket
.See Issue for more context: cloudflare/workers-sdk#6684
See Blog for more context: https://alexbevi.com/blog/2024/09/11/why-cloudflare-workers-dont-work-with-mongodb/
Beta Was this translation helpful? Give feedback.
All reactions