isaackogan / TikTokLive

Python library to receive live stream events (comments, gifts, etc.) in realtime from TikTok LIVE.
https://isaackogan.github.io/TikTokLive/
MIT License
867 stars 175 forks source link

6.1.4 error #260

Closed ozbao closed 16 hours ago

ozbao commented 20 hours ago

Describe the bug

image

when i run the example,gifts.py ,report this error

(myenv) PS F:\Work\Tiktok\TikTokLive> f:; cd 'f:\Work\Tiktok\TikTokLive'; & 'D:\Soft\Anaconda\envs\myenv\python.exe' 'c:\Users\Administrator.vscode\extensions\ms-python.python-2022.20.2\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '17689' '--' 'f:\Work\Tiktok\TikTokLive\examples\gifts.py' [TikTokLive] INFO from D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py:605 — ! connect failed; reconnecting in 4.6 seconds Traceback (most recent call last): File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 598, in aiter async with self as protocol: File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 629, in aenter return await self File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 647, in await_impl_timeout return await self.await_impl() File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 654, in await_impl await protocol.handshake( File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 325, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200 [TikTokLive] INFO from D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py:612 — ! connect failed again; retrying in 3 seconds Traceback (most recent call last): File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 598, in aiter async with self as protocol: File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 629, in aenter return await self File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 647, in await_impl_timeout return await self.await_impl() File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 654, in await_impl await protocol.handshake( File "D:\Soft\Anaconda\envs\myenv\lib\site-packages\websockets\legacy\client.py", line 325, in handshake raise InvalidStatusCode(status_code, response_headers) websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200

Expected Behaviour

...

Actual Behaviour

If applicable, include screenshots!

...

Package Version

My version of TikTokLive is 6.1.4.

Operating System

Windows 11

Anything Else

If there's anything else, add it here.

isaackogan commented 17 hours ago

Possibly fixed in https://github.com/isaackogan/TikTokLive/commit/f7632924d75f029c3d8d251c6d5c3daf3ef2e958

Please confirm so I can close, thanks

ozbao commented 16 hours ago

Yes, it ran successfully

isaackogan commented 16 hours ago

Woohoo!

GIF of the Day: https://eelslap.com/