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

Multiple cookies exist with name=ttwid #76

Closed nikita36trinta closed 2 years ago

nikita36trinta commented 2 years ago

Run a simple programm

from TikTokLive import TikTokLiveClient from TikTokLive.types.events import CommentEvent, ConnectEvent, GiftEvent

client: TikTokLiveClient = TikTokLiveClient(unique_id="@xxx")

@client.on("gift") async def on_gift(event: GiftEvent): if event.gift.gift_type == 1: if event.gift.repeat_end == 1: print(f"{event.user.uniqueId} sent {event.gift.repeat_count}x \"{event.gift.extended_gift.name}\"") elif event.gift.gift_type != 1: print(f"{event.user.uniqueId} sent \"{event.gift.extended_gift.name}\"")

if name == 'main': client.run()

Error occurs: Exception has occurred: FailedConnection Multiple cookies exist with name=ttwid

Tenetri commented 2 years ago

the code is broken for everyone right now. We're all patiently waiting for a fix.

nikita36trinta commented 2 years ago

the code is broken for everyone right now. We're all patiently waiting for a fix.

Turned out that fix released. That's why i created this one.

Tenetri commented 2 years ago

Turned out that fix https://github.com/zerodytrash/TikTok-Live-Connector/issues/66#issuecomment-1268913830. That's why i created this one.

omg thank you! Not sure why you're running into this error, my apologies

isaackogan commented 2 years ago

Fixed.

Upgrade with pip install TikTokLive --upgrade