You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the script just throws error "Sleeping for 10 seconds, server might be rate limiting!" on the following condition:
elifvideo_metadata.status_code==401orvideo_metadata.status_code==403orvideo_metadata.status_code==502:
logger.warning("Sleeping for 10 seconds, server might be rate limiting!")
sleep(10)
refresh_token(video_metadata)
download_video(course_name, content_uuid, complete_path, index)
This is a bad implementation since these HTTP responses could be produced anywhere and aren't just limited to rate-limiting errors. Better way would be to parse the error body and based on that, determine if user is rate limited, session has expired, or something else needs to be done.
The text was updated successfully, but these errors were encountered:
Anon-Exploiter
changed the title
[Code Change] - Handling of rate limiting and other errors
[Code Change] - Better Handling of rate limiting and other errors
Jan 4, 2024
Currently the script just throws error "Sleeping for 10 seconds, server might be rate limiting!" on the following condition:
This is a bad implementation since these HTTP responses could be produced anywhere and aren't just limited to rate-limiting errors. Better way would be to parse the error body and based on that, determine if user is rate limited, session has expired, or something else needs to be done.
The text was updated successfully, but these errors were encountered: