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

WebsocketResponseEvent error #226

Closed
vincespice opened this issue Jun 5, 2024 · 3 comments
Closed

WebsocketResponseEvent error #226

vincespice opened this issue Jun 5, 2024 · 3 comments
Assignees

Comments

@vincespice
Copy link

Hi,

If I want to run the code, I get this error message. What could be the problem?

[TikTokLive] INFO from check_live.py:27 — Requested client is live!
[TikTokLive] INFO from check_live.py:14 — Connected to @carlo_q!
Traceback (most recent call last):
File "C:\Users\Vince\pycharmprojects\TikTokLive\examples\check_live.py", line 33, in
asyncio.run(check_loop())
File "C:\Users\Vince\anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Vince\anaconda3\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "C:\Users\Vince\pycharmprojects\TikTokLive\examples\check_live.py", line 28, in check_loop
await client.connect()
File "C:\Users\Vince\pycharmprojects\TikTokLive\TikTokLive\client\client.py", line 185, in connect
await task
File "C:\Users\Vince\pycharmprojects\TikTokLive\TikTokLive\client\client.py", line 233, in _client_loop
async for event in self._ws_loop(initial_response):
File "C:\Users\Vince\pycharmprojects\TikTokLive\TikTokLive\client\client.py", line 267, in _ws_loop
for event in self._parse_webcast_response(webcast_message):
File "C:\Users\Vince\pycharmprojects\TikTokLive\TikTokLive\client\client.py", line 347, in _parse_webcast_response
response_event: Event = WebsocketResponseEvent().from_pydict(response.to_dict())
AttributeError: 'WebsocketResponseEvent' object has no attribute 'from_pydict'

@isaackogan
Copy link
Owner

oof

@bperian
Copy link

bperian commented Jul 25, 2024

latest betterproto==v2.0.0-beta5 works

@isaackogan
Copy link
Owner

Fixed d96dfcb

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