Deployment successful but getting 502 error

srinupolireddiTRIAL

10 months ago

I have recently deployed golang webserivce. Deployment status is success but when I tried to access the url, I am getting 502 bad gateway error.

it is simple hello world golang code - evcharz.ev.com or https://evcharz-production.up.railway.app

18 Replies

10 months ago


srinupolireddiTRIAL

10 months ago

Thank you for your message. I implemented as per above doc but it didn’t help


10 months ago

Please show me what code you changed.


srinupolireddiTRIAL

10 months ago

Attached code

Attachments


10 months ago

The address you are passing to ListenAndServe is not the same as show in the example.


srinupolireddiTRIAL

10 months ago

I have updated that too. but still same error


srinupolireddiTRIAL

10 months ago

The address you are passing to ListenAndServe is not the same as show in the example.


10 months ago

Show me your public networking section of your service settings please.


srinupolireddiTRIAL

10 months ago

Show me your public networking section of your service settings please.

https://github.com


10 months ago

Sorry, I'm not sure what that has to do with what I asked?


srinupolireddiTRIAL

10 months ago

sorry not sure where to get that info. so posted the repo url. is it on railway app?


srinupolireddiTRIAL

10 months ago

Show me your public networking section of your service settings please.


10 months ago

That domain should be pointing to 8080 not 8089


srinupolireddiTRIAL

10 months ago

switched to 8080. now I am getting 404 page not found


10 months ago

Please send the domain, as a moderator I do not have access to your project.


srinupolireddiTRIAL

10 months ago


10 months ago

That 404 is returned from your app, not Railway.


srinupolireddiTRIAL

10 months ago

I will debug and see what is the issue in the app. Thank you so much for your help


Deployment successful but getting 502 error - Railway Help Station