Hi! I get this error, which I’m not able to figure out.
It seems Gatling doesnt like the Sec-Websocket-Extensions response header?
val scn = scenario(scenarioName)
.exec(ws(“connect ws”).connect(“/socket.io/?EIO=3&transport=websocket”))
…
val httpProtocol = http
.wsBaseUrl(“wss://mysite.com”)
~sbt gatling:test
…
---- Errors --------------------------------------------------------------------
i.n.h.c.CodecException: invalid WebSocket Extension handshake 1 (100,0%)
for “permessage-deflate; client_no_context_takeover”
Gatling 3.0.3. Here is the conversation when browsing the same site in Chrome (which works fine).
-
Request URL:
wss://mysite.com/socket.io/?EIO=3&transport=websocket
-
Request Method:
GET
-
Status Code:
101 Switching Protocols
-
Response Headersview source
-
Connection:
upgrade
-
Date:
Tue, 05 Feb 2019 12:46:22 GMT
-
Sec-WebSocket-Accept:
DqJmFtz1G9/QNW0b9TFu5YydgbM=
-
Sec-WebSocket-Extensions:
permessage-deflate; client_no_context_takeover
-
Sec-WebSocket-Version:
13
-
Server:
nginx
-
Upgrade:
websocket
-
WebSocket-Server:
uWebSockets
-
Request Headersview source
-
Accept-Encoding:
gzip, deflate, br
-
Accept-Language:
sv,en;q=0.9,en-US;q=0.8
-
Cache-Control:
no-cache
-
Connection:
Upgrade
-
Cookie:
sfbShellAppLaunched=yes; sfbShellAppVersion=1.0.0.186; devid=a395ce8f-f1a8-487d-c092-df71124a16cb; consent=true; show-cookie-info=f,f,t; consent=t,t,f; io=rFg0v0wPcO81UQLNAAit; show-cookie-info=false
-
Host:
-
Origin:
-
Pragma:
no-cache
-
Sec-WebSocket-Extensions:
permessage-deflate; client_max_window_bits
-
Sec-WebSocket-Key:
6UZqKbW7JGiUlK61GIBWMg==
-
Sec-WebSocket-Version:
13
-
Upgrade:
websocket
-
User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36