websocket deployment help

why is it all red ? <:sad_hamster:1280780987504267328> is there any issue

Solved$10 Bounty

0 Replies

a month ago

Your service is just logging in the “error” level.
Everything looks good from those logs


a month ago

The real test is if the service is actually live


oh okay


well i am struggling with that


{ "requestId": "HR07G1esTsyVzgu40ubPiw", "timestamp": "2025-10-10T13:13:04.413010174Z", "method": "GET", "path": "/ws", "host": "vote-websocket-vote.up.railway.app", "httpStatus": 502, "upstreamProto": "", "downstreamProto": "HTTP/1.1", "responseDetails": "Retried single replica", "totalDuration": 1, "upstreamAddress": "", "clientUa": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36", "upstreamRqDuration": 1, "txBytes": 109, "rxBytes": 831, "srcIp": "223.236.245.148", "edgeRegion": "asia-southeast1-eqsg3a", "upstreamErrors": "[{\"deploymentInstanceID\":\"f8840c6f-669b-4020-81d7-018d8ba18492\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"f8840c6f-669b-4020-81d7-018d8ba18492\",\"duration\":0,\"error\":\"connection refused\"},{\"deploymentInstanceID\":\"f8840c6f-669b-4020-81d7-018d8ba18492\",\"duration\":0,\"error\":\"connection refused\"}]" }


i will just try allowing all origins


and check if it works


Wouldn’t throw 502 if origin not allowed


Is your domain pointing to 8080?


yes


8080 is where my frontend runs



yes it was a port error


i had it pointed to 8081 but my ws was running on 8080


Awesome.



thanks.


Status changed to Solved brody about 1 month ago


a month ago

!s


Loading...
websocket deployment help - Railway Help Station