API endpoint is not working after deploying
monkmoney
PROOP

a year 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

a year 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 12 months ago


monkmoney
PROOP

a year 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 12 months ago


a year ago

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


Status changed to Awaiting User Response Railway 12 months ago


monkmoney
PROOP

a year 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 12 months ago


monkmoney
PROOP

a year ago

should i use railpack instead of nixpack?


a year 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 12 months ago


monkmoney
PROOP

a year ago

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


Status changed to Awaiting Railway Response Railway 12 months ago


a year ago

No problem, Have a good day yourself as well!


Status changed to Awaiting User Response Railway 12 months ago


Status changed to Solved brody 12 months ago


Loading...