-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suddenly failing #164
Comments
Reddit introduced rate-limiting on their API about 4 days ago. Rumor has it it was due to a bot earlier this week who edited comments with the usernames of every Reddit account to spam chat requests. Current API limitations have write actions (post/edit) limited to 1 every 30 seconds. This isn't limited to apps, even old.reddit.com/ blocks users in the interface from editing more than once every 30 sec. To fix, Shreddit will need to add a delay timer, hopefully with a programmable variable to be included in shreddit.yml. Unfortunately, I think the app is no longer in development, so here's hoping some fork fixes it. |
i'm still getting it.. any idea where to add the delay? |
I haven't had time to look at the code (never was very good with Python). I tried manipulating the cooldown feature unsuccessfully. An maintained fork of Shreddit is available here: https://github.com/pythonInRelay/Shreddit But that fork doesn't have a fix for this yet either. |
See here: https://github.com/pythonInRelay/Shreddit/issues/9 Add ratelimit_seconds=45 to your praw.ini within your username section. I also added to a [default] section at the top of my praw.ini. thx to @KenMacD |
And if you're like me, and |
rate_limit_seconds in praw.ini didn't help me. I added a few
to shredder.py so that it sleeps for 4 seconds after each edit. That seems to have fixed it. It just takes a little longer now. |
Did you make sure that praw was up to date? The |
I installed everything today, but didn't check the praw version in requirements.text - will see if I can update, thank you! Edit - went from v5x to v7x ... I've already ran shreddit so can't test at the moment, but I'll assume setting the rate limit in praw.ini works better. |
I also ran into this problem today. praw version is up-to-date, EDIT: changed |
strange. the delay time must somehow be tied to the reddit account itself. other than adjusting mine from 31 to 45 i haven't made any other changes and it runs just fine. i run it once a night at 2am via cron. it sweeps up messages and posts. |
The text was updated successfully, but these errors were encountered: