-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
http.client.BadStatusLine #88
Comments
One thing I would check is make sure the ubuntu firewall as well as your aws security policy allows for outgoing connections. Another thing might be TikTok is doing spam protection against that data center if too many requests are being sent to their servers from the data center. Here's a stackover flow that may help. |
Thanks! It doesn't always error and seems to run faster on the server, so perhaps it is the TikTok spam detection. I'll try throttling it. |
Just adding a time.sleep(30) each (rare) time that error occurred, then trying again seemed to fix it. Thanks again! |
No problem glad I could help |
Thank you so much for this api! When running on my personal computer it runs fine, however when running on an AWS ubuntu server, I get the
BadStatusLine
error occasionally when hitting theapi.bySound
method. Any ideas what could be causing this? I'm running python 3.7.7 and am on the latest version of your TikTokAPI on my server.The full error trace is below:
The text was updated successfully, but these errors were encountered: