On my project https://glitch.com/edit/#!/fragrant-cake, I’m trying to connect to wss://fragrant-cake.glitch.me/3000 on port 3000 (which is
process.env.PORT) but I keep getting this error:
WebSocket connection to 'wss://fragrant-cake.glitch.me/3000:3000' failed: Error during WebSocket handshake: Unexpected response code: 502.
Could anyone help me? Thanks
process.env.PORT is just an internal redirect thing, can you get the desired result using the wss://fragrant-cake.glitch.me/3000 url?
No, it throws 502 errors.
I fixed it by using express-ws.
Having the same issue with websocket connection to glitch also. While in the past it worked flawlessy, now connection just fails with status 502. How does having to use express solve this?
It could be a Glitch issue. Maybe try later?
@glitch_support, where are they?
I am sorry that isn’t working for you now!
Recently, we made a decision to block ping services from our site as they were overloading our infrastructure. An unintended side effect is that some non-ping service IFTTT processes are also being blocked.
Our team is aware of this and investigating ways to prevent this from happening in the future. I don’t have an ETA on when that work will be done, but I have made a note to post an update in this thread once I get more info about this.