Node.js service cannot resolve Private Networking hostname (ENOTFOUND)

leozin2412
FREE

9 days ago

Hello! My Node.js service is unable to connect to my linked MySQL service.

I have confirmed that the environment variables are not being injected automatically. When I manually set MYSQLHOST to the private networking hostname provided in the dashboard (mysql.railway.internal), my application fails with the error: Error: getaddrinfo ENOTFOUND mysql.railway.internal.

It seems like there is a DNS resolution or networking issue between my services.

  • I have already tried redeploying both services.

  • My project uses a standard Node.js setup with the mysql2 library.

  • The project ID is: 81fed943-f086-4381-8fdd-ba2784b8a3cb
    Could you please investigate the networking between the services in my project? Thank you.

$10 Bounty

0 Replies

leozin2412
FREE

9 days ago

Need help


leozin2412
FREE

9 days ago

81fed943-f086-4381-8fdd-ba2784b8a3cb


leozin2412
FREE

9 days ago

81fed943-f086-4381-8fdd-ba2784b8a3cb


9 days ago

same issue happening with my mongodb and next.js app


Node.js service cannot resolve Private Networking hostname (ENOTFOUND) - Railway Help Station