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

TikTokLive.client.errors.UserOfflineError #203

Closed
1 of 4 tasks
Ikaros-521 opened this issue Mar 29, 2024 · 2 comments
Closed
1 of 4 tasks

TikTokLive.client.errors.UserOfflineError #203

Ikaros-521 opened this issue Mar 29, 2024 · 2 comments
Assignees

Comments

@Ikaros-521
Copy link

Ikaros-521 commented Mar 29, 2024

Describe the bug

The demo connection program I ran reported the following error

[TikTokLive] INFO from tests\test_tiktok\v6.py:36 — Requested client is live!
Traceback (most recent call last):
  File "E:\GitHub_pro\AI-Vtuber\tests\test_tiktok\v6.py", line 43, in <module>
    asyncio.run(check_loop())
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "E:\GitHub_pro\AI-Vtuber\tests\test_tiktok\v6.py", line 37, in check_loop
    await client.connect()
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\client.py", line 153, in connect
    task: Task = await self.start(**kwargs)
  File "e:\GitHub_pro\AI-Vtuber\Miniconda3\lib\site-packages\TikTokLive\client\client.py", line 120, in start
    raise UserOfflineError()
TikTokLive.client.errors.UserOfflineError

Expected Behaviour

normal listen

Actual Behaviour

If applicable, include screenshots!

image

Package Version

My version of TikTokLive is 6.0.3.

Operating System

  • Windows
  • Linux
  • MacOS
  • Other (Specifically, ...)

Anything Else

If there's anything else, add it here.

Network is normal,use proxy also error

@isaackogan
Copy link
Owner

This happens when the stream is rated 18+. Provide a sessionid.

@isaackogan
Copy link
Owner

A new version will come out with a better error message. You can also disable fetch_room_info.

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

2 participants