tegaki
unable to connect to mongodb using deno inside container
First of all, I want to mention that when I run
deno task preview
on my local machine / laptop, it works 🎉 . No issues there. But I need to run my deno program inside a container for depolyment reasons (currently using fly.io) it fails.
I'm using the official mongodb
npm client.
I use it via an import map (maybe that matters?), deno.json
:
And when I try to run the code in a container I get the following error:
checklist:
- same version of deno both places
- I've tried connecting to mongodb with the deno package mongo
but I get another error about the driver not supporting load balancing... so I guess it's just out of date? (6 months since last release)
- I've tried to base my image on ubuntu:latest
(install deno + run) same issue 🤔7 replies