TehCheese
TehCheese
Explore posts from servers
RRailway
Created by TehCheese on 9/9/2023 in #✋|help
Railway having issues with Mongoose NPM package???
Locally my code works fine, I can connect to Mongo using Mongoose no issues but when on Railway it randomly started timing out instead of connecting!!
47 replies
DDeno
Created by TehCheese on 9/4/2023 in #help
Deno hanging when trying to connect with Mongoose
When I try to connect to MongoDB using Mongoose the whole process just hangs until eventually timing out. I'm using a remote database with a user and password, and I know the URI is correct because I have used the same one on node.js projects. just
await mongoose.connect(`${env["MONGO_URI"]}`);
await mongoose.connect(`${env["MONGO_URI"]}`);
And I know it's getting the URI from the env file, I logged it to console There's no errors, other than the timeout error.
error: Uncaught (in promise) MongooseServerSelectionError: connection timed out
at _handleConnectionErrors (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/[email protected]/node_modules/mongoose/lib/connection.js:805:11)
at NativeConnection.openUri (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/[email protected]/node_modules/mongoose/lib/connection.js:780:11)
at eventLoopTick (ext:core/01_core.js:197:13)
at async file:///C:/Users/che/Documents/GitHub/Guin/Main.ts:23:1
error: Uncaught (in promise) MongooseServerSelectionError: connection timed out
at _handleConnectionErrors (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/[email protected]/node_modules/mongoose/lib/connection.js:805:11)
at NativeConnection.openUri (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/[email protected]/node_modules/mongoose/lib/connection.js:780:11)
at eventLoopTick (ext:core/01_core.js:197:13)
at async file:///C:/Users/che/Documents/GitHub/Guin/Main.ts:23:1
11 replies
RRailway
Created by TehCheese on 3/3/2023 in #✋|help
Using ts-node to start a typescript project
All it says is /bin/bash: line 1: /app/node_modules/.bin/ts-node: Permission denied
5 replies