API endpoint is not working after deploying
monkmoney
PROOP

2 years ago

I have deployed my express server to railway but the api endpoint base is not responding. Though the server is showing as running in railway log. Even railway given api domain doesnt work. What to do?

Solved

8 Replies

2 years ago

Hello,

Please do not run your application with nodemon, please run it with node directly.

Best,

Brody


Status changed to Awaiting User Response Railway • over 1 year ago


monkmoney
PROOP

2 years ago

Could you please elaborate a bit why node index.js instead of nodemon? Is it performance related issue? It worked fine in the last few months.


Status changed to Awaiting Railway Response Railway • over 1 year ago


2 years ago

nodemon is only to be used during development, it should not be used in production environments.


Status changed to Awaiting User Response Railway • over 1 year ago


monkmoney
PROOP

2 years ago

deployed with node index.js but the api endpoint is unavailable. This worked for the last few months perfectly. Now its showing This site can’t be reached. That means doesnt respond and show any returned data.


Status changed to Awaiting Railway Response Railway • over 1 year ago


monkmoney
PROOP

2 years ago

should i use railpack instead of nixpack?


2 years ago

I can hit the API just fine, I get an unauthorized error, but It's definitely reachable.


Status changed to Awaiting User Response Railway • over 1 year ago


monkmoney
PROOP

2 years ago

Thank you so much for you great support. I really appreciate this. Good Day!


Status changed to Awaiting Railway Response Railway • over 1 year ago


2 years ago

No problem, Have a good day yourself as well!


Status changed to Awaiting User Response Railway • over 1 year ago


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...