R
Railway•13mo ago
TehCheese

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!!
26 Replies
Percy
Percy•13mo ago
Project ID: N/A
TehCheese
TehCheese•13mo ago
n/a
Brody
Brody•13mo ago
would you happen to be using the private network?
TehCheese
TehCheese•13mo ago
I'm using a database hosted by MongoDB The connection URI and Mongoose work and connect fine running my code locally, but as soon as I try to use Railway it sends a timeout error And the network settings on the database let Railway connect so
Brody
Brody•13mo ago
that sounds like a no go into the service settings and disable private networking
TehCheese
TehCheese•13mo ago
Nevr was enabled
TehCheese
TehCheese•13mo ago
No description
Brody
Brody•13mo ago
okay thats one possible cause eliminated this database is hosted on railway correct?
TehCheese
TehCheese•13mo ago
no it's not
Brody
Brody•13mo ago
atlas?
TehCheese
TehCheese•13mo ago
Yes
Brody
Brody•13mo ago
have you whitelisted all ips in atlas?
TehCheese
TehCheese•13mo ago
Yes I believe it was a change in my code, cause I made some big changes and it stopped working I tried running older code and it worked fine I'm trying to understand what I need to change to fix it
Brody
Brody•13mo ago
ah then tbh theres not all that much i could do to help here, review your old comments and see what you have changed in your new comments that could effect it
TehCheese
TehCheese•13mo ago
uhugugughu thanks Knew there was prolly nothing you could do
Want results from more Discord servers?
Add your server