To keep part of SuggestBot's data updated I have a script that polls
regularly (once an hour) and uses the site.recentchanges() method to
get a time-limited list of the recent changes. Lately I have noticed
that this script throws an error:
raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: rcpermissiondenied: You need the patrol
right to request the patrolled flag
From what I can tell by sending manual requests to
en-WP's API, I
don't get this error message if I'm logged in (as a
regular user), but
it pops up if I'm not logged in. SuggestBot should be logged in, as I
make calls to pywikibot.getSite() and site.has_right() before I call
site.recentchanges(). So it could seem like the problem is related to
not being logged in.
I'm not sure where to start debugging this, maybe it's not a pywikibot
problem? Maybe it's only something I'm seeing? I'm running the
latest revision of the rewrite branch, btw.
Any input on where to start looking for clues would be great, thanks!