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

8 months 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

4 Replies

leozin2412
FREEOP

8 months ago

Need help


leozin2412
FREEOP

8 months ago

81fed943-f086-4381-8fdd-ba2784b8a3cb


leozin2412
FREEOP

8 months ago

81fed943-f086-4381-8fdd-ba2784b8a3cb


nate
HOBBY

8 months ago

same issue happening with my mongodb and next.js app


Loading...