-
Notifications
You must be signed in to change notification settings - Fork 446
Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value #1585
Comments
Could you use the Network tab of your browser dev tools to capture the network traffic going on so we can take a look at what's happening? In Chrome, you can just right click anywhere in the Network tab's list of requests and choose 'Save as HAR with Content' and then upload that file and link it here (please don't paste it inline, it's very large, you can use a gist to host the content if you need to). |
Hi @anurse , Many thanks! |
Ah, yes, I forgot to ask if you were running behind IIS, which does require installing the WebSockets feature. Glad it's resolved! Closing this issue now. |
@tranphuongyd Fixed the problem, many thanks. |
IIS appears to be changing the Sec-WebSocket-Key header value for some strange reason. Have confirmed this by logging the header to file. The header logged in aspnet core is not the same one as the client sends. Any ideas? |
This is expected. Are you seeing an issue? When you are using ANCM, there are two separate WebSocket connections at play:
IIS is forwarding frames back and forth but these are separate WebSocket connections so the |
@anurse Unfortunately it looks like there is something fishy going on. I logged an issue: dotnet/aspnetcore#3539 |
Ok, it looks like this is an IIS issue. Looks like that issue has found it's way to the right place. |
I'm getting this error now. Angular 7 + .Net Core 2.1 + Microsoft.AspNetCore.SignalR 1.04. This error does not happen when using the I'm assuming that its because win 10 IIS and Win Srv 2008 IIS (7.5) do not have WebSockets. But isnt SignalR supposed to be smart enough to detect this and fallback? |
I'm using the SignalR in .Net Core project (Microsoft.AspNetCore.SignalR -Version 1.0.0-alpha2-final).
![image](https://user-images.githubusercontent.com/7795756/37350209-c3fe3358-270a-11e8-971b-8b0e6d9e7745.png)
It's work very well from 1 week ago. BUT today it's get the error: WebSocket connection to 'mydomain' failed: Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value.
The browser is Chrome version 65.0.3325.146
With Fire Fox get another error like:
Firefox can’t establish a connection to the server at ws:MyDomain
Can someone help me resolve it.
Thanks!
The text was updated successfully, but these errors were encountered: