Issue - Error during WebSocket handshake: ‘Upgrade’ header is missing
I am trying to run my chat application in Sauce labs for e2e testing, After setting up connection with Sauce Labs when i try to open the chat in Saucelabs browser, I am getting Error during WebSocket handshake: 'Upgrade' header is missing.
I’m having a difficult time tracking down why SauceLab would be having an issue with the Websocket. Looking at the request headers and comparing them to a successful call from my own environment, they’re nearly identical aside from the origin and key. Can you help me better understand SauceLabs? Is it its own environment? How does it differ from when you’re using the application outside of it?
which sets up a tunnel for sauce lab VM to execute my session in multiple browsers, it works fine for HTTP req, but fails only for WS req with the error shown above.
And if you look at the network requests in the browser, do you see a similar error? It sounds like the tunnel that you’re using is causing issues with Websocket connections.