isaackogan / TikTokLive

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

Error parsing message in TikTokLive's deserialize_message function in utilities.py #109

Closed ahaydarli closed 1 year ago

ahaydarli commented 1 year ago

Traceback (most recent call last): File "/home/ubuntu/tok-server/main.py", line 61, in <module> client.run() File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/base.py", line 371, in run self.loop.run_until_complete(self._start()) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/base.py", line 347, in _start await self.start() File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/base.py", line 338, in start await self._connect() File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/base.py", line 293, in _connect webcast_response: Dict[str, Union[dict, str]] = await self.__fetch_room_data() File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/base.py", line 162, in __fetch_room_data webcast_response = await self.http.get_deserialized_object_from_signing_api("webcast/fetch/", self.http.params, "WebcastResponse") File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/client/httpx.py", line 194, in get_deserialized_object_from_signing_api return deserialize_message(schema, response) File "/home/ubuntu/tok-server/.venv/lib/python3.10/site-packages/TikTokLive/proto/utilities.py", line 21, in deserialize_message webcast_data.ParseFromString(obj) google.protobuf.message.DecodeError: Error parsing message

8qBITs commented 1 year ago

Same issue, at accurs on all libraries NodeJS, C#, Golang and this Python library. Tiktok has made a major change to something.

Matthew54e commented 1 year ago

Same here as well. Looks like TikTok likely changed the format of this message type?

ahaydarli commented 1 year ago

I think that my IP was blocked

richiec77 commented 1 year ago

Any idea when this will get looked at?

8qBITs commented 1 year ago

It was fixed hours after this was opened, someone should close this issue.

isaackogan commented 1 year ago

Fixed