Body:
Hello,
We are experiencing increasing protobuf parsing failures in TikTokLive recently. The issue started appearing suddenly and is now occurring frequently in production.
❗ Errors observed:
Varint decoding failure:
ValueError: Too many bytes when decoding varint
Banner message parsing failure:
WebcastInRoomBannerMessage parsing error (Broken Payload)
Competition message parsing issues:
WebcastCompetitionMessage decode/parse failures
betterproto runtime error:
AttributeError: can't set attribute 'type'
📍 Stack trace location:
TikTokLive/client/client.py -> _parse_webcast_response_message
betterproto/init.py
📦 Example payload types causing issues:
WebcastInRoomBannerMessage
WebcastCompetitionMessage
⚠️ Impact:
Frequent parsing errors in logs
Some events are dropped and not processed
Increased noise in production logs
Potential instability in event handling pipeline
🧠 Notes:
It seems like TikTok may have changed the webcast protobuf schema recently (especially banner and competition-related events), causing incompatibility with the current TikTokLive + betterproto implementation.
The errors suggest a mismatch between the current generated protobuf models and the actual payload structure being sent by TikTok.
🙏 Request:
Could you please review the recent changes in TikTok webcast events and update the protobuf schema / parsing layer accordingly?
If possible, a patch or updated release would be highly appreciated as this is affecting production stability.
Thanks for your work!
Body:
Hello,
We are experiencing increasing protobuf parsing failures in TikTokLive recently. The issue started appearing suddenly and is now occurring frequently in production.
❗ Errors observed:
⚠️ Impact:
Varint decoding failure:
ValueError: Too many bytes when decoding varint
Banner message parsing failure:
WebcastInRoomBannerMessage parsing error (Broken Payload)
Competition message parsing issues:
WebcastCompetitionMessage decode/parse failures
betterproto runtime error:
AttributeError: can't set attribute 'type'
📍 Stack trace location:
TikTokLive/client/client.py -> _parse_webcast_response_message
betterproto/init.py
📦 Example payload types causing issues:
WebcastInRoomBannerMessage
WebcastCompetitionMessage
Frequent parsing errors in logs
Some events are dropped and not processed
Increased noise in production logs
Potential instability in event handling pipeline
🧠 Notes:
It seems like TikTok may have changed the webcast protobuf schema recently (especially banner and competition-related events), causing incompatibility with the current TikTokLive + betterproto implementation.
The errors suggest a mismatch between the current generated protobuf models and the actual payload structure being sent by TikTok.
🙏 Request:
Could you please review the recent changes in TikTok webcast events and update the protobuf schema / parsing layer accordingly?
If possible, a patch or updated release would be highly appreciated as this is affecting production stability.
Thanks for your work!