Skip to content

Frequent protobuf parsing errors (WebcastCompetitionMessage / BannerMessage / betterproto "type" attribute error) #356

@gezegen01-sys

Description

@gezegen01-sys

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions