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

bad RSV1, RSV2, or RSV3 bits #44

Open
sdmrnv opened this issue Jul 21, 2019 · 1 comment
Open

bad RSV1, RSV2, or RSV3 bits #44

sdmrnv opened this issue Jul 21, 2019 · 1 comment

Comments

@sdmrnv
Copy link

sdmrnv commented Jul 21, 2019

When I GET the address that call lua script with client example I receive error: "failed to receive the frame: bad RSV1, RSV2, or RSV3 bits"

nginx.conf:

server{
listen 80;
server_name comet.io;
location /cli{
default_type 'text/html';
content_by_lua_file 'path/to/lua/ws_client.lua';
}
}

ws_client.lua: <copy-paste from https://github.com/openresty/lua-resty-websocket#restywebsocketclient>

curl http://comet.io/cli
failed to receive the frame: bad RSV1, RSV2, or RSV3 bits

There is my ws server config:

server {
listen 8020;
    server_name comet.io;
    location /ser {
        proxy_pass http://comet.io:8010;
        proxy_http_version 1.1;
        proxy_set_header Upgrade "websocket";
        proxy_set_header Connection "Upgrade";
        proxy_set_header sec-websocket-key tfyt7uhy08yuh08909uoij;
        proxy_set_header sec-websocket-version 13;
    }
}

server {
    listen 8010;
    server_name comet.io;

    location /ser {
        default_type 'text/html';
        content_by_lua_file '/root/ws_server.lua';
    }
}
@KamranBiglari
Copy link

@sdmrnv Have you find a solution to fix this problem, I have same problem when I tried to connect to wss://ws.kraken.com/book

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

2 participants