So I wanted to try making like a blog website with Node js and MongoDB. I’m a beginner with it so it’s kinda a mess, but everything worked fine locally (on localhost 3000). I found Railway as a free alternative to Heroku and tried to deploy my project there.
For some reason it failed to connect to the database, and this is what I got in the logs.
Here is a small piece of code from app.js
What could be the problem? I will share more code if it is needed.