I’ve just started noticing that my Phoenix Liveview app hangs for a long time every time it must re-open a websocket connection. The warning I get after a few seconds is: “Websocket is closed before the connection is established”
I don’t think I have made any change recently that would start triggering this behavior except I started building my app remotely when deploying (with
fly deploy --remote-only) because I was having issues deploying from my new mac with its M1 chip. I don’t see why that would affect anything but it might still be valuable info.
- I get this issue on Brave, Chrome and Safari (so all browsers I’m pretty sure)
- I have tried moving from the
ams, to no avail
- Happens on both Windows and MacOS
I know this issue comes up on forums from time to time but unfortunately, none of the possible resolutions has helped me.
The app is at https://nara.fly.dev
EDIT: I redeployed my app and the issue is gone. I’m thinking it was an unhealthy instance or some temporary fluke in the network.