Closed fratamico closed 4 years ago
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: