Application failed to respond - node.js app

jmjbrooks
TRIAL

a year ago

I am able to successfully deploy my app and Railway duly displays a link (myname)server-production.up.railway.app , but when I follow that link I get 'Application failed to respond'.
Deploy logs seem fine:
npm WARN config production Use --omit=dev instead.

(myname)server@1.0.0 start

node server.js

Server is running on port 443

I have tried different port numbers.
My package.json contains (excerpt):
"main": "server.js",
"scripts": {
"start": "node server.js",

How can I expose my app to a web URL which can be visited by others please? All works fine locally- I can hit the service via http://localhost:443/ .

Apologies for any daft questions as this is all very new to me. Thanks!

Solved

3 Replies

jmjbrooks
TRIAL

a year ago

How does one solicit a response on this platform please?


a year ago

My apologies, I'm honestly not sure how this thread got lost, thank you for bumping.

The fix is simple though, please read this docs page -

https://docs.railway.app/guides/fixing-common-errors


Status changed to Solved Railway about 1 year ago


jmjbrooks
TRIAL

a year ago

Thanks so much! That worked a treat. Much appreciated.


Application failed to respond - node.js app - Railway Help Station