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.web.routes.fetch_sign.SignAPIError: ('[SIGN_NOT_200]', 'Failed request to Sign API with status code 420.' #233

Closed
1 task done
deepin2soul opened this issue Jun 22, 2024 · 2 comments
Assignees

Comments

@deepin2soul
Copy link

deepin2soul commented Jun 22, 2024

Describe the bug

Traceback (most recent call last):
File "C:\Users\Home_I5\Desktop\TikTok\tiktok_py_project\live.py", line 24, in
client.run()
File "C:\Users\Home_I5\Desktop\tik_tok311\pythonProject11\venv\Lib\site-packages\TikTokLive\client\client.py", line 167, in run
return self._asyncio_loop.run_until_complete(self.connect(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home_I5\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Home_I5\Desktop\tik_tok311\pythonProject11\venv\Lib\site-packages\TikTokLive\client\client.py", line 149, in connect
task: Task = await self.start(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home_I5\Desktop\tik_tok311\pythonProject11\venv\Lib\site-packages\TikTokLive\client\client.py", line 123, in start
webcast_response: WebcastResponse = await self._web.fetch_sign_fetch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Home_I5\Desktop\tik_tok311\pythonProject11\venv\Lib\site-packages\TikTokLive\client\web\routes\fetch_sign.py", line 137, in call
raise SignAPIError(
TikTokLive.client.web.routes.fetch_sign.SignAPIError: ('[SIGN_NOT_200]', 'Failed request to Sign API with status code 420.')
Cancelling an overlapped future failed
future: <_OverlappedFuture pending cb=[_ProactorReadPipeTransport._loop_reading()]>
Traceback (most recent call last):
File "C:\Users\Home_I5\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 71, in _cancel_overlapped
self._ov.cancel()
OSError: [WinError 6] The handle is invalid

Expected Behaviour

...

Actual Behaviour

If applicable, include screenshots!

...

Package Version

My version of TikTokLive is from 6.0 to 6.0.6

Operating System

  • Windows

Anything Else

If there's anything else, add it here.

@shaiyon
Copy link
Contributor

shaiyon commented Jun 25, 2024

What steps have you taken to debug this issue? Have you checked if this is a rate limit? Is this a consistent or one off issue?

@isaackogan
Copy link
Owner

Closing. 420 is an intentional code. You are being blocked for one of the following reasons:

  • Excessive spam (as in, hundreds per minute)
  • Request originating from China, Russia, or Ukraine
  • Requests originating from datacenters used to DDoS the sign server

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

3 participants