CybersecurityForDemocracy / tiktok-library

A library for interacting and large-scale data acquisition from the TikTok Research API
https://pypi.org/project/tiktok_research_api_helper/
4 stars 0 forks source link

better handle api server error (http 500) that persists despite retries, increase backoff time linearly (instead of fixed 5s) #50

Closed macpd closed 3 months ago

macpd commented 3 months ago

by default catch and return what results we have when 500 seems unsurmountable. provide API config var to still raise the issue.

handle API error that reject cursor that it just provided. like invalid search id bug

reduce max wait on api server error to 1 min. document 2 different retryers in TikTokApiRequestClient

reducer number of retries on api server error from 20 -> 10