question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation: Confusion about ratelimit

See original GitHub issue

I’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 trigger praw.exceptions.RedditAPIException.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
reaglecommented, Oct 12, 2021

Please proceed.

0reactions
github-actions[bot]commented, Nov 12, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confusing documentation about rate limit - Issuance Policy
Rate limit documentation says “To make sure you can always renew your certificates when you need to, we have a Renewal Exemption to...
Read more >
Rate limit documentation (#41308) · Issues - GitLab.org
We do not document GitLab.com's rate limits anywhere, which has caused confusion for some users. Plus, there is more than one potential ...
Read more >
Django Ratelimit Documentation
Django Ratelimit is a ratelimiting decorator for Django views, storing rate data in the configured Django cache · backend. Code https://github.
Read more >
`rate_limit` confusion - Twitter API v2
Rate limit are made to keep the server running smoothly for all users. This limit is shared per user, which is fair if...
Read more >
Rate limits | Docs | Twitter Developer Platform
Each of our APIs use rate limits in different ways. To learn more about these differences between platforms, please review the specific rate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found