lexand
lexand
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
https://docs.deno.com/deploy/manual/deployctl there you go if you need informations
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
try using deno deploy ctl, maybe it'll work? who knows
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
ok, i never used a git repo to deploy on deno deploy, my bad
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
deployctl deploy --project=helloworld --entrypoint=src/entrypoint.ts => should point to your server file
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
if you are ready to pay x) i think there is another option for free hosting
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
your entrypoint is your server file?
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
i update to deno 1.41.2 (with deno upgrade) and change npm:mongodb@6.4.0 It works too
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
you use MongoCompass to connect to MongoAtlas?
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
oh ok
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
you could always install MongoCompass on your computer and connect to it
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
deno : 1.41.1 windows 10
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
yup for me
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
const client = new MongoClient('***',{ connectTimeoutMS:5000, }); we never know
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
import { MongoClient } from "npm:mongodb@6";

const client = new MongoClient('mongodb+srv://');
client.connect()
.then(()=>console.log('connecte'))
.catch((err)=>console.log(err));
import { MongoClient } from "npm:mongodb@6";

const client = new MongoClient('mongodb+srv://');
client.connect()
.then(()=>console.log('connecte'))
.catch((err)=>console.log(err));
`
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
sure
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
i will try with mongodb on deno
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
i don't really know why it doesn't work but the documentation says it's better to use the mongodb driver and not mongoose
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
hm well i don't know, but at least it works on node which is better than nothing x)
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
, { serverSelectionTimeoutMS: 10000 }
82 replies
DDeno
Created by Cesar on 3/6/2024 in #help
Error connecting to mongoose when using deno cli
try to add the serverSelectionTimeoutMS with 10 second, maybe it need more time?
82 replies