4 months ago
Hi Railway Support,
I'm experiencing persistent ECONNRESET errors when trying to connect to my PostgreSQL database from my Node.js application.
Issue Details:
Error:
read ECONNRESETfrom
pg-pool/index.js:45:11Occurs on ALL connection attempts (SSL required, SSL prefer, no SSL)
Started around September 25, 2025 (coinciding with your US-West infrastructure issues)
Application deployed in Singapore region
Project Info:
Project: virtutrade
Database: PostgreSQL service
App: Node.js with pg library
What I've tried:
Multiple SSL configurations (
sslmode=require,
sslmode=prefer, no SSL)
Different connection pool settings
Connection retries with exponential backoff
Request:
Please check if there are connectivity issues between my app service and PostgreSQL database service. The error suggests the database is rejecting connections at the TCP level.
Thanks,
2 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
4 months ago
Hi!
I see you're connecting over the public network. First, I was able to confirm that your database is running correctly. You should try running over the private network (postgres.railway.internal) for a more stable connection.
Status changed to Awaiting User Response Railway • 4 months ago
4 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 4 months ago