Documentation: Confusion about ratelimit
See original GitHub issueI’ve been confused about PRAW ratelimits, have my long-running script break by exceptions when PRAW it says it handles them. In this reddit thread I discuss this, and someone pointed me to this documentation, which states:
Controls the maximum amount of seconds PRAW will capture ratelimits returned in JSON data. Because this can be as high as 10 minutes, only ratelimits of up to 5 seconds are captured and waited on by default. Should be a number representing the amount of seconds to sleep.
One confusion: is there a difference between a pause upon receiving a Reddit warning and the wait between each request? I’m not confident in my understanding, but if the following is correct I think it’d be an improvement over the current prose:
ratelimit_seconds
: The number of seconds PRAW will silently sleep after Reddit returns a warning with a time to pause. The default is 5 seconds; Reddit might suggest as many as 600 seconds. Warnings that exceed the specified/default value triggerpraw.exceptions.RedditAPIException
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (8 by maintainers)
Top GitHub Comments
Please proceed.
This issue is stale because it has been open for 20 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.