Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing #3691

Closed
DOMZE opened this issue Apr 29, 2016 · 4 comments
Closed

Comments

@DOMZE
Copy link

DOMZE commented Apr 29, 2016

SignalR 3-RC1 user on ASP.NET 5 RC1

Getting the following error when trying to get websocket going.

Using Chrome 50.0.2661.87

Headers are the following:

Request header:
Date:Fri, 29 Apr 2016 13:51:54 GMT
Server:Kestrel
Transfer-Encoding:chunked
Upgrade:websocket
X-Content-Type-Options:nosniff
X-Powered-By:ASP.NET

Response Header:
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8,fr;q=0.6
Cache-Control:no-cache
Connection:Upgrade
Cookie: ...ASP.NET cookie
DNT:1
Host: host.tld
Origin: http://host.tld
Pragma:no-cache
Sec-WebSocket-Extensions:permessage-deflate; client_max_window_bits
Sec-WebSocket-Key:liIKiClt7Z057EwteJYJXQ==
Sec-WebSocket-Version:13
Upgrade:websocket
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36

Using Microsoft.AspNet.WebSockets.Server 1.0.0-rc1

Server Setup:
Windows Server 2012 R2
IIS 8.5

Anything I can do to get that fixed?

@moozzyk
Copy link
Contributor

moozzyk commented Jul 5, 2016

Does this still happen with latest bits? If so, can you file this in the https://github.com/aspnet/SignalR-Server repo?

@moozzyk moozzyk closed this as completed Jul 5, 2016
@DOMZE
Copy link
Author

DOMZE commented Jul 29, 2016

I actually have the RC2 bits and it is still happening....

@DOMZE
Copy link
Author

DOMZE commented Sep 19, 2016

To those who might have the same problem. Install WebSocket on IIS. That solved the problem

@MaklaCof
Copy link

I can confirm that DOMZE solution also works for WebSocket Core on IIS.
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.0-alpha2-final" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants