a year ago
I'm stuck with this error that I'm getting every time I try to deploy my PostgreSQL server. Post requests won't reach database, and data won't persist. The "Deploy > Running pre-deployment command" step won't complete, and I don't know why.
I'm using Github and a PostgreSQL Railway provides. I have been trying different things, but nothing has worked so far. Even tried with all ChatGPT output solutions, but none of them worked.
7 Replies
a year ago
can you tell us what you mean by post requests won't reach the database? the database is not an API
The app I built has a basic sign-up form built with EJS. On submit, data should pass all middleware routes until it reaches the queries.mjs file, which has a specific function that inserts the form data to the PostgreSQL database I built using Railway.
I checked middleware functions are passing the data correctly and seems right. But I thought the problem would come from Railway, as PostgreSQL deploy looks like it's hung up on pre-deployment step..
Still learning backend, so happy to clarify whatever you need to understand the problem. 🙂
a year ago
the pre-deploy command is just a UI bug, what issues are you actually facing
a year ago
update here that the ui bug that showed the deploy being stuck on pre-deploy has been fixed
a year ago
of course that was just ui and never casued any actual problems, so please let me know what issues you are facing
