Connection Error: Connection ended unexpectedly
Railway seems to have a bug where the connection between our nodejs server and the postgres db ( in the same railway project) have connection issues midway through a query. keep getting the following error:
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Connection Error: Connection ended unexpectedly
Project ID: aa5f6f94-b4b8-4582-bfda-61de1da9b940
8 Replies
Project ID:
N/A
Project ID added to the post
can you run queries from pgadmin without issues?
It’s only intermittent, like once no traffic is hit the server or DB for hours
not a railway bug, just improper database connection handling on your part, to fix set your pool minimum to zero
Oh wow thank you very interesting
I will try this
Btw this fixed it thank you Brody!
no problem, I see this issue pop up every now and then, even from projects not even using strapi, so I'm glad this is the correct and proper solution