Node.js Client Application Fails to Connect to Server Hosted on Railway, Works with Postman and Vercel
chadrackkyungu
HOBBYOP

2 years ago

I'm having trouble with a Node.js client application that connects to an API server. The server is hosted on Railway and listens on port 3800. When I test the server using Postman or from a frontend application hosted on Vercel, everything works fine—the server responds as expected. However, when I try to make the same requests from my Node.js client application which is running on my local machine as a service worker, I receive a connection timeout error.

1 Replies

chadrackkyungu
HOBBYOP

2 years ago

What should I do? When I test the Node.js application on Railway by running it locally along with another Node.js client app, everything works—I can make requests successfully. However, when I host my Node.js application on Railway and then try to call some APIs from the Node.js app hosted on Railway, it doesn't work. Remember, the app making the requests is running on my laptop as a service worker.


Loading...