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
Project ID:
N/A
n/a
would you happen to be using the private network?
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
that sounds like a no
go into the service settings and disable private networking
Nevr was enabled
![No description](https://cdn.answeroverflow.com/1149861635436052591/image.png)
okay thats one possible cause eliminated
this database is hosted on railway correct?
no it's not
atlas?
Yes
have you whitelisted all ips in atlas?
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
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
uhugugughu
thanks
Knew there was prolly nothing you could do