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

Playback using WSS - Query #10

Open
voicecomms opened this issue Jan 31, 2024 · 0 comments
Open

Playback using WSS - Query #10

voicecomms opened this issue Jan 31, 2024 · 0 comments

Comments

@voicecomms
Copy link

voicecomms commented Jan 31, 2024

Hi,

Tried WSS playback and when hitting the url I am getting invalid headers
below is what I am getting from my wss


--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: 4zqLX/Ie7s/hiqzhM0xpwa5G4Sk=
Date: Sat, 03 Feb 2024 09:18:35 GMT
Server: Python/3.8 websockets/12.0

Invalid subprotocol: ['stream-channel']
Invalid WebSocket Header
Invalid WebSocket Header - goodbye
error from callback <function on_close at 0x7f2d4c8a24c0>: on_close() takes 1 positional argument but 3 were given
on_close() takes 1 positional argument but 3 were given
root@ip-10-0-23-108:/usr/src/websocket# ./wsspush.py ab78c341-19a0-4fb3-86d3-b91df2265f7e
--- request header ---
GET / HTTP/1.1
Upgrade: websocket
Host: localhost:1234
Origin: http://localhost:1234
Sec-WebSocket-Key: 5rfDzLm2HaBIX7GWn+Jqgw==
Sec-WebSocket-Version: 13
Connection: Upgrade
Sec-WebSocket-Protocol: stream-channel
Channel-ID:ab78c341-19a0-4fb3-86d3-b91df2265f7e


--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: yigfc3L0/E7g0DbGlPV/qbu4k3I=
Date: Sat, 03 Feb 2024 09:18:55 GMT
Server: Python/3.8 websockets/12.0

Invalid subprotocol: ['stream-channel']
Invalid WebSocket Header
Invalid WebSocket Header - goodbye
error from callback <function on_close at 0x7f351af984c0>: on_close() takes 1 positional argument but 3 were given
on_close() takes 1 positional argument but 3 were given
root@ip-10-0-23-108:/usr/src/websocket# ./wsspush.py ab78c341-19a0-4fb3-86d3-b91df2265f7e
--- request header ---
GET / HTTP/1.1
Upgrade: websocket
Host: localhost:1234
Origin: http://localhost:1234
Sec-WebSocket-Key: 06xYbP4MuhJ8AU7WrcbeBw==
Sec-WebSocket-Version: 13
Connection: Upgrade
Sec-WebSocket-Protocol: stream-channel
Channel-ID:ab78c341-19a0-4fb3-86d3-b91df2265f7e

Thanks in advance

Regards
CJ

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

1 participant