tegaki
tegaki
DDeno
Created by tegaki on 2/18/2024 in #help
unable to connect to mongodb using deno inside container
SOLVED: starting a new fresh project (basically starting everything from scratch) seems to fix the issue, something in the repo was bad (config, code... not sure), causing the app to not work in containers :deno_it_works:
7 replies
DDeno
Created by tegaki on 2/18/2024 in #help
unable to connect to mongodb using deno inside container
Now I suspect there's something in the glue between when npm:mongodb asks for bson, and where it searches for the package on disk?
7 replies
DDeno
Created by tegaki on 2/18/2024 in #help
unable to connect to mongodb using deno inside container
root@dee72538d329:/app# find -name 'bson*'
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/src/bson.ts
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/lib/bson.js.map
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/lib/bson.js
./node_modules/.deno/mongodb@6.3.0/node_modules/bson
./node_modules/.deno/node_modules/bson
./node_modules/.deno/bson@6.3.0
./node_modules/.deno/bson@6.3.0/node_modules/bson
./node_modules/.deno/bson@6.3.0/node_modules/bson/src/bson.ts
./node_modules/.deno/bson@6.3.0/node_modules/bson/src/bson_value.ts
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.bundle.js.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.cjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.cjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.mjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.mjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.bundle.js
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.rn.cjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.rn.cjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/bson.d.ts
root@dee72538d329:/app# find -name 'bson*'
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/src/bson.ts
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/lib/bson.js.map
./node_modules/.deno/mongodb@6.3.0/node_modules/mongodb/lib/bson.js
./node_modules/.deno/mongodb@6.3.0/node_modules/bson
./node_modules/.deno/node_modules/bson
./node_modules/.deno/bson@6.3.0
./node_modules/.deno/bson@6.3.0/node_modules/bson
./node_modules/.deno/bson@6.3.0/node_modules/bson/src/bson.ts
./node_modules/.deno/bson@6.3.0/node_modules/bson/src/bson_value.ts
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.bundle.js.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.cjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.cjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.mjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.mjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.bundle.js
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.rn.cjs.map
./node_modules/.deno/bson@6.3.0/node_modules/bson/lib/bson.rn.cjs
./node_modules/.deno/bson@6.3.0/node_modules/bson/bson.d.ts
It seems to download the dependencies just fine? 😵‍💫, at first I thought it didn't cache / download correctly, but that's probably not it. I can run any command inside the docker container on request! (hopefully with minimal delay)... what's going on? 🤔
7 replies