Deployment successful but getting 502 error

srinupolireddi
TRIAL

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

a year ago


srinupolireddi
TRIAL

a year ago

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


a year ago

Please show me what code you changed.


srinupolireddi
TRIAL

a year ago

Attached code

Attachments


a year ago

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


srinupolireddi
TRIAL

a year ago

I have updated that too. but still same error


srinupolireddi
TRIAL

a year ago

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


a year ago

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


srinupolireddi
TRIAL

a year ago

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

https://github.com


a year ago

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


srinupolireddi
TRIAL

a year ago

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


srinupolireddi
TRIAL

a year ago

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


a year ago

That domain should be pointing to 8080 not 8089


srinupolireddi
TRIAL

a year ago

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


a year ago

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


srinupolireddi
TRIAL

a year ago


a year ago

That 404 is returned from your app, not Railway.


srinupolireddi
TRIAL

a year ago

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