websocket 404 issue after deploying to fly.io

It works fine locally, but it returns a 404/301 error when deployed to fly.io. Do you guys have any ideas about this issue? Thanks in advance!
No description
7 Replies
ἔρως
ἔρως2mo ago
301 is a redirect have you tried wss?
hgs
hgsOP2mo ago
wss is 404
hgs
hgsOP2mo ago
No description
hgs
hgsOP2mo ago
I guess it's related to backend deploy issue, but still don't get a clue to figure it out
ἔρως
ἔρως2mo ago
404 is a backend issue, yes either the websocket didnt start (unlikely) or that's the wrong path (likely)
hgs
hgsOP2mo ago
the path works locally, so I guess it's deploy issue like fly io need to config to support websocket but still a guess and need further debug
ἔρως
ἔρως2mo ago
it might be a deploy issue, yes

Did you find this page helpful?