DerIch27 created this task. DerIch27 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Starting 2 hours ago my eventstreams started to fail with http status 403 and the message //Please set a user-agent and respect our robot policy https://w.wiki/4wJS. See also T400119 <https://phabricator.wikimedia.org/T400119>.// I fixed this for me by changing line 379 of `comms/eventstreams.py` to `self.source = EventSource(headers={'User-Agent': user_agent()}, **self.sse_kwargs)` and adding `from pywikibot.comms.http import user_agent`at the beginning of the file. TASK DETAIL https://phabricator.wikimedia.org/T402796 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
