question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - TikTok blocks this request displaying a Captcha even with custom_verifyFp

See original GitHub issue

Describe the bug

custom_verifyFp worked last week. Today, it got blocked even with custom_verifyFp parameter. I am suspecting the cookie had expired. So, I tried to get new s_v_web_id, I usee the login with phone number method to open the Captcha box.

The buggy code

api = TikTokApi(custom_verify_fp=sys.argv[1])

user = api.user(sys.argv[2])

python tiktok.py cookie_here username_here

Expected behavior

It should return dict.

Error Trace (if any)

ERROR:root:Tiktok wants to display a catcha. Response is:
{"code":"10000", **removed as it contains the fp cookie**}
ERROR:root:{**removed as it contains csrf token**}
Traceback (most recent call last):
  File "C:\Users\jason\Desktop\GitHub\learn\social-media-engagement-rate-calculator\tiktok.py", line 11, in <module>
    tiktoks = api.by_username(sys.argv[2], count=postscount, custom_verifyFp=sys.argv[1])
  File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 702, in by_username
    return self.user_posts(
  File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 666, in user_posts
    res = self.get_data(url=api_url, send_tt_params=True, **kwargs)
  File "C:\Users\jason\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\TikTokApi\tiktok.py", line 311, in get_data
    raise TikTokCaptchaError()
TikTokApi.exceptions.TikTokCaptchaError: TikTok blocks this request displaying a Captcha
Tip: Consider using a proxy or a custom_verifyFp as method parameters

Desktop (please complete the following information):

  • OS: Windows 10
  • TikTokApi Version 5.0.0

Additional context

I tested it on v4.1.0 and v5.0.0, identical behavior occurs.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
roman-dmytrivcommented, Jun 3, 2022

Hey @RobLOlson. Had the same issue. I will try to look at it, just need to find some time( If something is found, will let you know here as well.

2reactions
roman-dmytrivcommented, Mar 13, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] - TikTok blocks this request displaying a Captcha · Issue ...
I've tested with and without the custom_verify_Fp, and used the custom_verify_Fp at both the instance and method levels. I've tried running on ...
Read more >
how to create a good verifyfp for TikTok-Api to bypass captcha ...
how to create a good verifyfp for TikTok -Api to bypass captcha error. Watch later. Share. Copy link. Info. Shopping. Tap to unmute....
Read more >
How to fix 'The captcha you entered is incorrect.' error in ...
After filling the fields and pressing the button 'Submit' the error message appears saying that "The captcha you entered is incorrect. Please try...
Read more >
Getting Google Captcha In Safari On iPhone And Mac? (Fixed!)
Are you constantly getting Google Captcha in Safari on iPhone, iPad & Mac? Test keep appearing since updating to iOS 15 and macOS...
Read more >
I'm Not a Robot! So Why Won't Captchas Believe Me? - WIRED
Everyone's run into a Captcha they just can't get right. ... disappointment when she failed the captcha user-verification test, even though ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found