Page MenuHomePhabricator

EventStreams fails with sseclient 0.0.24 (Python 3.7.0)
Closed, ResolvedPublic

Description

Eventstreams fails with sseclient 0.0.24 with "WARNING: Could not load json data from {...}" due to "Unterminated string..." or "Expecting value..."
The same in 0.0.23. Probably Python 2.7 and 3.4 works but it is not tested.

eventstreams_tests are passing for 0.0.22 and 0.0.24 therefore this problem should become part of the test suite

See below:

C:\pwb\GIT\core>pwb archive/script_wui -simulate
> main
> __init__
* Initialization of bot
WARNING: C:\pwb\GIT\core\pywikibot\comms\eventstreams.py:347: DeprecationWarning
: stream argument of pywikibot.comms.eventstreams.EventStreams.__init__ is depre
cated; use streams instead.
  stream = EventStreams(stream='recentchange', site=site)

** Redirecting Lua print in order to catch it
** Pre-loading all relevant page contents
** Starting crontab background timer thread
> on_timer
> do_check_CronJobs
WARNING: .\scripts\archive\script_wui.py:215: FutureWarning: Version 0.22.0+ of
crontab will use datetime.utcnow() and
datetime.utcfromtimestamp() instead of datetime.now() and
datetime.fromtimestamp() as was previous. This had been a bug, which will be
remedied. If you would like to keep the *old* behavior:
`ct.next(..., default_utc=False)` . If you want to use the new behavior *now*:
`ct.next(..., default_utc=True)`. If you pass a datetime object with a tzinfo
attribute that is not None, timezones will *just work* to the best of their
ability. There are tests...
  now - datetime.timedelta(microseconds=1))

> start
> on_event
WARNING: Empty message found.
> on_event
WARNING: Could not load json data from
{"bot":true,"comment":"Renamed prefixcat > prefix cat","id":65549847,"length":{"
new":22,"old":21},"meta":{"domain":"en.wiktionary.org","dt":"2019-05-09T13:10:36
+00:00","id":"d608cd28-725b-11e9-85b1-b083fecf0568","request_id":"XNQmzApAMEYAAC
ct27cAAACS","schema_uri":"mediawiki/recentchange/2","topic":"eqiad.mediawiki.rec
entchange","uri":"https://en.wiktionary.org/wiki/Category:French_words_prefixed_
with_podo-","partition":0,"offset":1581312525},"minor":true,"namespace":14,"pars
edcomment":"Renamed prefixcat > prefix cat","patrolled":true,"revision":{"new
":52779116,"old":27375388},"server_name":"en.wiktionary.org","server_script_path
":"/w","server_url":"https://en.wiktionary.org","timestamp":1557407436,"title":"
Ca
Unterminated string starting at: line 1 column 720 (char 719)

WARNING: Could not load json data from
{"bot":false,"comment":"/* wbcreateclaim-create:1| */ [[Property:P921]]: [[Q1344
835]], #quickstatements; [[:toollabs:quickstatements/#/batch/12343|batch #12343]
] by [[User:Daniel Mietchen|]]","id":974236230,"length":{"new":20971,"old":20538
},"meta":{"domain":"www.wikidata.org","dt":"2019-05-09T13:10:37+00:00","id":"d60
8cb32-725b-11e9-ae31-14187761340f","request_id":"XNQmzApAAEsAABPTiPQAAABD","sche
ma_uri":"mediawiki/recentchange/2","topic":"eqiad.mediawiki.recentchange","uri":
"https://www.wikidata.org/wiki/Q40777649","partition":0,"offset":1581312544},"mi
nor":false,"namespace":0,"parsedcomment":"‎<span dir=\"auto\"><span class=\"auto
comment\">Created claim: </span></span> <a href=\"/wiki/Property:P921\" title=\"
Property:P921\">Property:P921</a>: <a href=\"/wiki/Q1344835\" title=\"Q1344835\"
>Q1344835</a>, #quickstatements; <a href=\"https://tools.wmflabs.org/quickstatem
ents/#.2Fbatch.2F12343\" class=\"extiw\" title=\"toollabs:quickstatements/\">bat
ch #12343</a> by <a href=\"/wiki/User:Daniel_Mietchen\" title=\"User:Daniel Miet
chen\">User:Daniel Mietchen</a>","patrolled":true,"revision":{"new":937459355,"o
ld":865678082},"server_name":"www.wikidata.org","server_script_path":
Expecting value: line 1 column 1190 (char 1189)

WARNING: Could not load json data from
{"bot":false,"comment":"","id":1217424981,"log_action":"overwrite","log_action_c
omment":"uploaded a new version of File:LL-Q188 (deu)-Sebastian Wallroth-Bildsch
irme.wav","log_id":281363170,"log_params":{"img_sha1":"2a5fhvbvcxfm13kon3v3kmve1
q16z3k","img_timestamp":"20190509131034"},"log_type":"upload","meta":{"domain":"
commons.wikimedia.org","dt":"2019-05-09T13:10:34+00:00","id":"d6a16823-725b-11e9
-8fd6-b083fecf0dc3","request_id":"XNQmxgpAMDkAACLYNbAAAAEV","sc
Unterminated string starting at: line 1 column 461 (char 460)

WARNING: Could not load json data from
{"bot":false,"comment":"/* Рейтинг */","id":369676751,"length":{"new":12461,"old
":10701},"meta":{"domain":"ru.wikipedia.org","dt":"2019-05-09T13:10:38+00:00","i
d":"d6a16b3c-725b-11e9-ba5e-b083fecf0e3f","request_id":"XNQmzgpAMEoAAAUyJIgAAAAH
","schema_uri":"mediawiki/recentchange/2","topic":"eqiad.mediawiki.recentchange"
,"uri":"https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%B
A%D1%80%D1%83%D0%BF%D0%BD%D0%B5%D0%B9%D1%88%D0%B8%D1%85_%D0%BA%D0%BE%D0%BC%D0%BF
%D0%B0%D0%BD%D0%B8%D0%B9_%D0%9A%D0%B8%D1%82%D0%B0%D1%8F_%D0%BF%D0%BE_%D0%B2%D0%B
5%D1%80%D1%81%D0%B8%D0%B8_Forbes_(2019)","partition":0,"offset":1581312564},"min
or":false,"namespace":0,"parsedcomment":"<span dir=\"auto\"><span class=\"autoco
mment\"><a href=\"/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BA%D1%80%D1%83%
D0%BF%D0%BD%D0%B5%D0%B9%D1%88%D0%B8%D1%85_%D0%BA%D0%BE%D0%BC%D0%BF%D0%B0%D0%BD%D
0%B8%D0%B9_%D0%9A%D0%B8%D1%82%D0%B0%D1%8F_%D0%BF%D0%BE_%D0%B2%D0%B5%D1%80%D1%81%
D0%B8%D0%B8_Forbes_(2019)#Рейтинг\" title=\"Список крупнейших компаний Китая по
версии Forbes (2019)\">→‎Рейтинг</a></span></span>","revision":{"new":99682356,"
old":99682026},"server_name":"ru.wikipedia.org","server_script_path":"/w","serve
r_url":"https://ru.wikipedia.org","timestamp":1557407438,"title":"Список крупн
Unterminated string starting at: line 1 column 1266 (char 1265)
> on_event

WARNING: Could not load json data from
{"bot":true,"comment":"/* wbremoveclaims-remove:1| */ [[Property:P2093]]: Christ
ine Mannhalter, #quickstatements; [[:toollabs:editgroups/b/CB/#temporary_batch_1
538582933236|details]]; invoked by sourcemd_batch_processing on behalf of [[User
:Magnus Manske|]] (batch 551)","id":974236239,"length":{"new":50589,"old":51211}
,"meta":{"domain":"www.wikidata.org","dt":"2019-05-09T13:10:37+00:00","id":"d6a1
5da2-725b-11e9-b05c-141877613170","request_id":"XNQmzQpAEDEAAGdUzp4AAAHF","schem
a_uri":"mediawiki/recentchange/2","topic":"eqiad.mediawiki.recentchange","uri":"
https://www.wikidata.org/wiki/Q58955464","partition":0,"offset":1581312571},"min
or":false,"namespace":0,"parsedcomment":"‎<span dir=\"auto\"><span class=\"autoc
omment\">Removed claim: </span></span> <a href=\"/wiki/Property:P2093\" title=\"
Property:P2093\">Property:P2093</a>: Christine Mannhalter, #quickstatements; <a
href=\"https://tools.wmflabs.org/editgroups/b/CB/#temporary_batch_1538582933236\
" class=\"extiw\" title=\"toollabs:editgroups/b/CB/\">details</a>; invoked by so
urcemd_batch_processing on behalf of <a href=\"/wiki/User:Magnus_Manske\" title=
\"User:Magnus Manske\">User:Magnus Manske</a> (batch 551)","patrolled":true,"rev
ision":{"new":937459366,"old":937459332},"server_name":"www.wikidata.org","serve
r_script_path":"/w","server_url":"https://www.wikidata.org","timestam
Unterminated string starting at: line 1 column 1341 (char 1340)

Event Timeline

Xqt triaged this task as High priority.May 9 2019, 1:48 PM

Change 509071 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] Don't pass ValueError silently

https://gerrit.wikimedia.org/r/509071

Change 509074 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Don't use sseclient 0.0.23 and 0.0.24

https://gerrit.wikimedia.org/r/509074

Change 509074 merged by Xqt:
[pywikibot/core@master] [bugfix] Don't use sseclient 0.0.23 and 0.0.24

https://gerrit.wikimedia.org/r/509074

Change 509132 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [tests] Test whether sseclient.EventSource works as expected

https://gerrit.wikimedia.org/r/509132

I made a simple test for sseclient.EventSource (see above).

It fails as expected with sseclient 0.0.24 but passes with 0.0.22:

C:\pwb\GIT\core>pip install "sseclient == 0.0.24"
Collecting sseclient==0.0.24
...
Successfully installed sseclient-0.0.24

C:\pwb\GIT\core>pwb eventstreams_tests -v TestEventSource
tests: max_retries reduced from 15 to 1
test_stream (__main__.TestEventSource)
Verify that the EventSource delivers events without problems. ... ERROR

======================================================================
ERROR: test_stream (__main__.TestEventSource)
Verify that the EventSource delivers events without problems.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\eventstreams_tests.py", line 270, in __iter__
    element = json.loads(event.data)
  File "C:\python37\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "C:\python37\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\python37\lib\json\decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 226
 (char 225)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\tests\eventstreams_tests.py", line 298, in test_stream
    self.assertLength(list(self.es), limit)
  File ".\tests\eventstreams_tests.py", line 277, in __iter__
    .format(number=n, event=event, error=e))
ValueError: Unterminated string starting at: line 1 column 226 (char 225)

Event no 6: Could not load json data from source
${"bot":false,"comment":"/* wbcreateclaim-create:1| */ [[Property:P31]]: [[Q4167
836]], #quickstatements","id":974515190,"length":{"new":1240,"old":810},"meta":{
"domain":"www.wikidata.org","dt":"2019-05-09T18:58:19+00:00","id":"68c158bc-728c
$

----------------------------------------------------------------------
Ran 1 test in 0.964s

FAILED (errors=1)

C:\pwb\GIT\core>pip install "sseclient == 0.0.22"
Collecting sseclient==0.0.22
...
Successfully installed sseclient-0.0.22

C:\pwb\GIT\core>pwb eventstreams_tests -v TestEventSource
tests: max_retries reduced from 15 to 1
test_stream (__main__.TestEventSource)
Verify that the EventSource delivers events without problems. ... ok

----------------------------------------------------------------------
Ran 1 test in 2.723s

OK

C:\pwb\GIT\core>
This comment was removed by Dvorapa.
Xqt lowered the priority of this task from High to Low.EditedMay 10 2019, 6:27 AM

Decreased prio after dependency patch was merged

Change 509132 merged by jenkins-bot:
[pywikibot/core@master] [tests] Test whether sseclient.EventSource works as expected

https://gerrit.wikimedia.org/r/509132

Xqt changed the task status from Open to Stalled.Aug 30 2019, 4:29 AM

Upstream issue remaining

Xqt changed the task status from Stalled to Open.Oct 21 2021, 7:55 AM
Xqt added a subscriber: Shizhao.

@Shizhao: what are your Pywikibot as sseclient versions?

在T222885#7447032中,@Xqt写道:

@Shizhao: what are your Pywikibot as sseclient versions?

$ python3 $HOME/pywikibot/pwb.py $HOME/pywikibot/scripts/version.py
Pywikibot: [https] r-pywikibot-core (b755e0c, g15511, 2021/10/07, 13:18:53, OUTDATED)
Release version: 6.6.1
setuptools version: 50.1.0
mwparserfromhell version: 0.6.3
wikitextparser version: n/a
requests version: 2.25.1

Python: 3.5.3 (default, Apr  5 2021, 09:00:41)
[GCC 6.3.0 20170516]
$ pip show sseclient
Name: sseclient
Version: 0.0.27
Summary: Python client library for reading Server Sent Event streams.
Home-page: https://github.com/btubbs/sseclient
Author: Brent Tubbs
Author-email: brent.tubbs@gmail.com
License: UNKNOWN
Requires: six, requests
Required-by:

This problem happens occasionally when the script is running for a long time. Looks like a server-side data error, or an error occurred when pywikibot and/or sseclient parsed the data?

I run a script continuously for 24hr/day, and this error will occurs 1-2 times a day on average.

Probably due to to many connections? See 429 Client Error:

WARNING: Connection error: 429 Client Error: Too Many Requests for url: https://stream.wikimedia.org/v2/stream/recentchange.

I haven’t encountered this error in the past few days (from 10-28 until today), and I haven’t modified/updated the relevant code. May be EventStreams server-side data error?

I haven’t encountered this error in the past few days (from 10-28 until today), and I haven’t modified/updated the relevant code. May be EventStreams server-side data error?

Maybe yes because it came with that connection error. There was a problem in past and I implemented some tests here and upstream and there might be a remaining issue with https://github.com/btubbs/sseclient/issues/28 but I am also running sseclient 24/7 and haven't see such a problem lately.

Maybe yes because it came with that connection error. There was a problem in past and I implemented some tests here and upstream and there might be a remaining issue with https://github.com/btubbs/sseclient/issues/28 but I am also running sseclient 24/7 and haven't see such a problem lately.

Ooops! I checked the error log of my script today, and this problem occurred again:

WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://meta.wikimedia.org/wiki/User:COIBot/LinkReports/dienekes.blogspot.nl","request_id":"1b3cd8e5-4730-45b6-bf5e-9a445ac284b0","id":"7352efa7-0a80-4e48-b4dd-309e406d8be5","dt":"2021-11-01T09:55:10Z","domain":"meta.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3406505819},"id":20449356,"type":"edit","namespace":2,"title":"User:COIBot/LinkReports/dienekes.blogspot.nl","comment":"Report for dienekes.blogspot.nl (Redirect addition by حجاوي_(بيت_الحكÙ
Unterminated string starting at: line 1 column 506 (char 505)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://meta.wikimedia.org/wiki/User:COIBot/XWiki/dienekes.blogspot.nl","request_id":"04c0973d-ea08-4be3-82f8-a58f59af39b7","id":"f9827639-95ea-459c-8954-d7cd1b89c7ac","dt":"2021-11-01T09:55:18Z","domain":"meta.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3406505999},"id":20449357,"type":"edit","namespace":2,"title":"User:COIBot/XWiki/dienekes.blogspot.nl","comment":"Report for dienekes.blogspot.nl (Redirect addition by حجاوي_(بيت_الحكÙ
Unterminated string starting at: line 1 column 494 (char 493)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://meta.wikimedia.org/wiki/User:COIBot/LinkReports","request_id":"95c81822-5543-4e12-b197-a7bf877c4720","id":"c04a1e73-2b3f-49b2-94f8-ce212c271c7a","dt":"2021-11-01T09:55:23Z","domain":"meta.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3406506145},"id":20449360,"type":"edit","namespace":2,"title":"User:COIBot/LinkReports","comment":"XWikiReport created in [[User:COIBot/LinkReports/dienekes.blogspot.nl|dienekes.blogspot.nl]] - XWiki link additions by حجاوي_(بيت_الحكÙ
Unterminated string starting at: line 1 column 464 (char 463)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Spam/LinkReports/dienekes.blogspot.nl","request_id":"435cddf1-d438-456c-8589-827dad340a58","id":"c0bae60d-a4ad-42d9-84f6-c11272b4e356","dt":"2021-11-01T09:55:49Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3406507353},"id":1438789232,"type":"edit","namespace":4,"title":"Wikipedia:WikiProject Spam/LinkReports/dienekes.blogspot.nl","comment":"Report for dienekes.blogspot.nl (Redirect addition by حجاوي_(بيت_الحكÙ
Unterminated string starting at: line 1 column 534 (char 533)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Spam/LinkReports","request_id":"087e9211-3434-4395-8890-952efb25d375","id":"a57802c0-7947-4f17-8c53-bd9ec8291079","dt":"2021-11-01T09:55:57Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3406507506},"id":1438789255,"type":"edit","namespace":4,"title":"Wikipedia:WikiProject Spam/LinkReports","comment":"XWikiReport created in [[Wikipedia:WikiProject_Spam/LinkReports/dienekes.blogspot.nl|dienekes.blogspot.nl]] - XWiki link additions by حجاوي_(بيت_الحكÙ
Unterminated string starting at: line 1 column 492 (char 491)
WARNING: Connection error: The read operation timed out.
Try to re-establish connection.

No 429 Client Error.

I received a lot of errors today (2021-11-08), but the timestamp is between 2021-10-10 and 2021-10-14. Below are some of the error messages received:

{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://vi.wikipedia.org/wiki/Bartsia_canescens","request_id":"de9bfd56-8023-4ad0-bf67-d07da0c8179b","id":"95c1535b-dca6-4b9c-b59f-f8fa7d1c4180","dt":"2021-10-12T14:04:31Z","domain":"vi.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359623026},"id":105538991,"type":"edit","namespace":0,"title":"Bartsia canescens","comment":"{{tham khảo|2}} → {{tham khảo|30em}}","timestamp":1634047471,"user":"TheFriendlyRobot","bot":true,"minor":true,"patrolled":true,"length":{"old":1262,"new":1265},"revision":{"old":21539350,"new":66321204},"server_url":"https://vi.wikipedia.org","server_name":"vi.wikipedia.org","server_scri
Unterminated string starting at: line 1 column 727 (char 726)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://commons.wikimedia.org/wiki/Category:Philippine_FOP_cases/deleted","request_id":"8f291a15-b4f9-4156-8fec-b7ac18f32226","id":"541ef160-3a59-4cb0-aee2-45739025aae3","dt":"2021-10-12T14:05:03Z","domain":"commons.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359623856},"id":1787416184,"type":"categorize","namespace":14,"title":"Category:Philippine FOP cases/deleted","comment":"[[:Commons:Deletion requests/Files in Category:Fast food menus in the Philippines]] removed from category, [[Special:WhatLinksHere/Commons:Deletion requests/Files in Category:Fast food menus in the Philippines|this page is included within other pages]]","timestamp":1634047503,"user":"JWilz12345","bot":false,"server_url":"https://commons.wikimedia.org","server_name":"commons.wikimedia.org","server_script_path":"/w","wiki":"commonswiki","parsedcomment":"<a href=\"/wiki/Commons:Deletion_requests/Files_in_Category:Fast_food_menus_in_the_Philippines\" title=\"Commons:Deletion requests/Files in Category:Fast food menus in the Philippines\">Commons:Deletion requests/Files in Category:Fast food menus in the Philippines</a> removed from category, <a href=\"/wiki/Special:WhatLinksHere/Commons:Deletion_requests/Files_in_Category:Fast_food_menus_in_the_Philippines\" title=\"Special:WhatLinksHere/Commons:Deletion requests/Files in Category:Fast food menus in the Philippi
Unterminated string starting at: line 1 column 963 (char 962)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/Category:Use_dmy_dates_from_August_2020","request_id":"47a56a2a-e386-46b2-98e6-16359f4ef176","id":"097925ad-982d-45f8-921b-c4d3fe363665","dt":"2021-10-12T14:05:27Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359624689},"id":1432222131,"type":"categorize","namespace":14,"title":"Category:Use dmy dates from August 2020","comment":"[[:A. G. Cook]] added to category, [[Special:WhatLinksHere/A. G. Cook|this page is included within other pages]]","timestamp":1634047527,"user":"Bentovi","bot":false,"server_url":"https://en.wikipedia.org","server_name":"en.wikipedia.org",
Expecting property name enclosed in double quotes: line 1 column 741 (char 740)
WARNING: Could not load json data from
{"$schema":"/mediawiki/re
Unterminated string starting at: line 1 column 12 (char 11)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/%C3%96lands_Bank","request_id":"32920138-6e7f-4784-aefa-0a1d00d72498","id":"ac7c2947-d92f-452f-a933-e6410a0a6835","dt":"2021-10-12T14:06:25Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359626336},"id":1432222543,"type":"edit","namespace":0,"title":"Ölands Bank","comment":"/* History */","timestamp":1634047585,"user":"Finavisor","bot":false,"minor":false,"length":{"old":1499,"new":1649},"revision":{"old":1049554696,"new":104
Expecting ',' delimiter: line 1 column 598 (char 597)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/User:197.32.96.108","request_id":"df705b6c-a54d-41df-b2e4-636e1805d927","id":"1028648b-4bca-4940-8fe4-fe3e025d7e58","dt":"2021-10-12T14:06:52Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359627174},"id":1432222764,"type":"log","n
Unterminated string starting at: line 1 column 398 (char 397)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://id.wikipedia.org/wiki/Kategori:Artikel_biografi_Oktober_2021","request_id":"67a71878-7095-465c-98b2-e354649f7888","id":"ba5ea720-ca52-419b-ab96-b4d77a686d68","dt":"2021-10-12T14:07:15Z","domain":"id.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359628003},"id":43770638,"type":"categorize","namespace":14,"title":"Kategori:Artikel biografi Oktober 2021","comment":"[[:Haddad Alwi]] ditambahkan ke kategori","timestamp":1634047635,"user":"125.165.106.38","bot":false,"server_url":"https://id.wikipedia.org","server_name":"id.wikipedia.org","server_script_path":"/w","wiki":"idwiki","parsedcomment":"<a href=\"/wik
Unterminated string starting at: line 1 column 730 (char 729)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://ro.wikipedia.org/wiki/Fi%C8%99ier:Calcit;_CaCO3;_Carbona%C8%9Bi_(%C8%98tiin%C8%9Bele_naturii)_2711_14.09.2018_Fond_959F3DBB155D4D618ADD6110A239F11D.jpg","request_id":"2ed17110-fa4e-41c4-824d-83fd6f65e727","id":"c1129594-1c0e-4f63-aac8-7da60927ea44","dt":"2021-10-12T14:07:47Z","domain":"ro.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359628822},"id":129461898,"type":"log","namespace":6,"title":"Fișier:Calcit; CaCO3; Carbonați (Științele naturii) 2711 14.09.2018 Fond 959F3DBB155D4D618ADD6110A239F11D.jpg","comment":"Imagine Cimec nouă","timestamp":1634047667,"user":"Strainubot","bot":true,"log_id":7523408,"log_type":"upload","log_action":"upload","log_params":{"img_sha1":"ilddc3caj1f9cf42ls0wwjfyr7s64gn","img_timestamp":"20211012140747"},"log_action_comment":"a trimis [[Fișier:Calcit; CaCO3; Carbonați (Științele naturii) 2711 14.09.2018 Fond 959F3DBB155D4D618ADD6110A239F11D.jpg]]: Imagine Cimec nouă","server_url":"https://ro.wikipedia.org","server_name":"ro.wikiped
Unterminated string starting at: line 1 column 1099 (char 1098)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q27604455","request_id":"ebc5b8d0-174e-4055-a31e-44a672cbb395","id":"9b5b05ac-a287-4c1f-82a2-b2e6ad48bc03","dt":"2021-10-12T14:08:48Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359630472},"id":1558636920,"type":"edit","namespace":0,"title":"Q27604455","comment":"/* wbsetreference-add:2| */ [[Property:P225]]: Ardea cinerea jouyi","timestamp":1634047728,"user":"SuccuBot","bot":true,"minor":false,"patrolled":true,"length":{"old":27166,"new":27596},"revision":{"old":1501236748,"new":1511138528},"server_url":"https://www.wikidata.org","server_name":"www.wikidata.org","server_script_path":"/w","wiki":"wikidatawiki","parsedcomment":"‎<span dir=\"a
Unterminated string starting at: line 1 column 805 (char 804)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q92711018","request_id":"984e193b-c82c-4332-80f6-a02c0afbaae5","id":"34f120df-0415-4f6c-b850-acfe2db38142","dt":"2021-10-12T14:09:29Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359632080},"id":1558637193,"type":"edit","namespace":0,"title":"Q92711018","comment":"/* wbeditentity-update:0| */ Added [[Property:P921]]: [[Q25303877]] with [[Wikidata:Tools/ItemSubjector]] ([[:toolforge:editgroups/b/CB/7190272b0961|details]])","timestamp":1634047769,"user":"Jsamwrites","bot":false,"minor":false,"patrolled":true,"length":{"old":28409,"new":29276},"revision":{"old":1369463677,"new":1511138797},"server_url":"https://www.wikidata.org","server_name":"www.wikidata.org","server_script_path":"/w","wiki":"wikidatawiki","parsedcomment":"‎<span dir=\"auto\"><span class=\"autocomment\">Updated Item: </span></span> Added <a href=\"/wiki/Property:P921\" title=\"Property:P921\">Property:P921</a>: <a href=\"/wiki/Q25303877\" title=\"Q25303877\">Q25303877</a> with <a href=\"/wiki/Wikidata:Tools/ItemSubjector\" title=\"Wikidata:Tools/ItemSubjector\">Wikidata:Tools/ItemSubjector</a> (<a href=\"https://iw.toolforge.org/edit
Unterminated string starting at: line 1 column 901 (char 900)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/User:102.41.83.238","request_id":"f4d02de0-e484-4a9e-82e3-e9b1a1fd0375","id":"99be7f62-d6b4-4995-b225-f4ec5d58322c","dt":"2021-10-12T14:09:58Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359632900},"id":1432224096,"type":"log","namespace":2,"title":"User:102.41.83.238","comment":"{{blocked p2p proxy|ip=102.41.83.238|isp=TE Data}} <!-- API-confirmed P2P VPN -->","timestamp":1634047798,"user":"ST47ProxyBot","bot":true,"log_id"
Expecting ':' delimiter: line 1 column 599 (char 598)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q12032124","request_id":"6cc82262-3105-447e-ad7d-8a29e0832e9c","id":"0644bbd9-2998-42f5-bbcd-3461e17660cd","dt":"2021-10-12T14:10:24Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359633733},"id":1558637480,"type":"edit","namespace":0,"title":"Q12032124","comment":"/* wbsetaliases-add:1|en */ Kyprias","timestamp":1634047824,"user":"J
Unterminated string starting at: line 1 column 502 (char 501)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://ru.wikipedia.org/wiki/Mickey%27s_Fire_Brigade","request_id":"bcffd15b-
Unterminated string starting at: line 1 column 127 (char 126)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://commons.wikimedia.org/wiki/File:Journal_of_James_McGuire_Jr._of_Mocksville-_1905_-_DPLA_-_6b4bc96af3c88813ededbf08551c17d0_(page_10).jpg","request_id":"8e58441e-b42f-41a0-aec9-bb31c26186e9","id":"494814da-822f-48d9-bc7f-
Unterminated string starting at: line 1 column 262 (char 261)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/User:148.103.139.254","request_id":"18d01132-fe07-46c9-92a2-9f913d92cb59","id":"8f2a588a-5828-4ea0-8e65-ebf12da32829","dt":"2021-10-12T14:11:52Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359636194},"id":1432224956,"type":"log","namespace":2,"title":"User:148.103.139.254","comment":"{{blocked p2p proxy|ip=148.103.139.254|isp=Latin American and Caribbean IP address Regional Registry}} <!-- API-confirmed P2P VPN -->","timestamp":1634047912,"user":"ST47ProxyBot","bot":true,"log_id":122693073,"log_type":"block","log_action":"block","log_params":{"duration":"71 hours","flags":"nocreate","sitewide":true},"log_action_comment":"blocked User:148.103.139.254 (account creation blocked) with an expiry time of 2 days and 23 hours: {{blocked p2p proxy|ip=148.103.139.254|isp=Latin American and Caribbean IP address Regional Registry}} <!-- API-confirmed P2P VPN -->","server_url":"https://en.wikipedia.org","server_name":"en.wikipedia.org","server_script_path":"/w","wiki":"enwiki","parsedcomment":"{{blocked p2p proxy|ip=148.103.139.254|isp=Latin American and Caribbean IP address Regional Registry}} &lt;!-- API
Unterminated string starting at: line 1 column 1166 (char 1165)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https:
Unterminated string starting at: line 1 column 58 (char 57)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentc
Unterminated string starting at: line 1 column 12 (char 11)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://vi.wikibooks.org/wiki/S%C3%A1ch_v%E1%BA%ADt_l%C3%BD/Ch%E1%BA%A5t_kh%C3%AD","request_id":"59bf07a3-ecbf-41e3-8041-169baf9ba286","id":"ca82c353-dc94-4716-9bc2-3401606e3420","dt":"2021-10-12T14:14:02Z","domain":"vi.wikibooks.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359639546},"id":364748,"type":"new","namespace":0,"title":"Sách vật lý/Chất khí","comment":"Tạo trang mới với nội dung “==Định luật khí== === Định luật Boyle === [[Tập tin:Boyle_air_pump.jpg|liên_kết=https://vi.wikipedia.org/wiki/T%E1%BA%ADp tin:Boyle_air_pump.jpg|viền|phải|nhỏ|Thiết bị của Boyle]] Định luật Boyle có lẽ là biểu thức đầu tiên của một phương trình trạng thái. Năm 1662 [[Robert Boyle]] đã thực hiện một loạt thí nghiệm sử dụng một ống thủy tinh hình chữ J, được bịt kí…”","timestamp":1634048042,"user":"205.189.94.3","bot":false,"minor":false,"patrolled":false,"length":{"new":6193},"revision":{"new":335570},"server_url":"https://vi.wikibooks.org","server_name":"vi.wikibooks.or
Unterminated string starting at: line 1 column 1071 (char 1070)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/User:103.105.96.162","request_id":"f19dc053-04d4-4cf5-a8f0-e1fb3f3862b6","id":"379b44a5-e069-4e39-8a9f-a9fb0a35822e","dt":"2021-10-12T14:14:37Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359640368},"id":1432226148,"type":"log","namespace":2,"title":"User:103.105.96.162","comment":"{{blocked p2p proxy|ip=103.105.96.162|isp=Oyenet Broadband Pvt Ltd}} <!-- API-confirmed P2P VPN -->","timestamp":1634048077,"user":"ST47ProxyBot","bot":true,"log_id":122693721,"log_type":"block","log_action":"block","log_params":{"duration":"167 hours","flags":"nocreate","sitewide":true},"log_action_comment":"bloc
Unterminated string starting at: line 1 column 764 (char 763)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://commons.wikimedia.org/wiki/Category:Dirk_Meland_Langeveld","request_id":"01122366-6309-4c83-b730-f7a674d93ea2","id":"6eb74887-7d14-4817-bb59-4b747b01774d","dt":"2021-10-12T14:15:32Z","domain":"commons.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359641988},"id":1787420397,"type":"categorize","namespace":14,"title":"Category:Dirk Meland Langeveld","comment":"[[:File:Parade van de vrijwillige burger Cavalerie, 1787 Gezigt van de Parade der Amsterdamsche burger cavallerie op 't konings-plein 1787 Vue de la Plaine Royal avec la parade de la cavallerie bourgeoise a Amsterdam 1787 (tite, RP-P
Unterminated string starting at: line 1 column 493 (char 492)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta"
Expecting ':' delimiter: line 1 column 50 (char 49)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q16854915","request_id":"6f61c218-58c4-485e-8db7-1b2abdf0f5dc","id":"94222742-6e63-4071-8a78-6397e0940a3d","dt":"2021-10-12T14:16:35Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359643641},"id":1558639130,"type":"edit","namespace":0,"title":"Q16854915","comment":"/* wbsetdescription-set:1|cs */ rozcestník na projektech Wikimedia, Unifying cs descriptions on disambiguations ([[:toollabs:editgroups/b/CB/2380d3a889e1d5f092b9|details]])","timestamp":1634048195,"user":"Mormegil","bot":false,"minor":false,"patrolled":true,"length":{"ol
Unterminated string starting at: line 1 column 703 (char 702)
WARNING: Could not load json data from
{"$schema":"/mediawiki/rece
Unterminated string starting at: line 1 column 12 (char 11)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/User:193.168.178.15","request_id":"ca82a747-c0a7-4e4a-bda8-6598021d1243","id":"8d3b5729-ee99-42a2-91c6-5ef97a32c453","dt":"2021-10-12T14:17:40Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359645292},"id":1432227529,"type":"log","namespace":2,"title":"User:193.168.178.15","comment":"{{blocked p2p proxy|ip=193.168.178.15|isp=Ural-TLC-NET2}} <!-- API-confirmed P2P VPN -->","timestamp":1634048260,"user":"ST47ProxyBot","bot":true,"log_id":122694412,"log_type":"block","log_action":"block","log_params":{"duration":"71 hours","flags":"nocreate","sitewide":true},"log_action_comment":"blocked User:193.168.178.15 (account creation blocked) with an expiry time of 2 days and 23 hours: {{blocked p2p proxy|ip=193.168.178.15|isp=Ural-TLC-NET2}} <!-- API-confirmed P2P VPN -->","server_url":"https://en.wikipedia.org","server_name":"en.wikipedia.org","server_script_path":"/w","wiki":"enwiki","parsedcomment":"{{blocked p2p proxy|ip=193.168.178.15|i
Unterminated string starting at: line 1 column 1073 (char 1072)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://vi.wikipedia.org/wiki/Ca
Unterminated string starting at: line 1 column 58 (char 57)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/2021_JC_Ferrero_Challenger_Open_%E2%80%93_Singles","request_id":"f635dbe7-3851-42f3-ab14-6b5da2e8cffd","id":"53df036f-4245-4799-aec3-69e67cbf1150","dt":"2021-10-12T14:18:25Z","domain":"en.wikipedia.org","stream":"
Unterminated string starting at: line 1 column 301 (char 300)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q46689927","request_id":"a34435d7-e80f-47f0-9f99-69c792891c63","id":"490eaee2-9c89-4fac-8ab9-a069cb33e578","dt":"2021-10-12T14:18:55Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359647747},"id":1558639935,"type":"edit","namespace":0,"title":"Q46689927","comment":"/* wbeditentity-update:0| */ Author Disambiguator set author [[Q7351106]] ([[:toollabs:editgroups/b/AD/905aabbb|details]])","timestamp":1634048335,"user":"Daniel Mietchen","bot":false,"minor":false,"patrolled":true,"length":{"old":67717,"new":68046},"revision":{"old":1456661115,"new":1511141484},"server_url":"https://www.wikidata.org","server_name":"www.wikidata.org","server_script_path":"/w","wiki":"wikidatawiki","parsedcomment":"‎<span dir=\"auto\"><span class=\"autocomment\">Updated Item: </span></span> Author Disambiguator set author <a href=\"/wiki/Q7351106\" title=\"Q7351106\">Q7351106</a> (<a href=\"https://iw.toolforge.org/editgroups/b/AD/905aabbb\" class=\"extiw\" title
Unterminated string starting at: line 1 column 869 (char 868)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://commons.wikimedia.org/wiki/Category:Ships_named_Adonis","request_id":"8286e2e0-d802-4c0c-b4b9-340a2de529a9","id":"37cbd84a-6373-4a68-bee6-ca1d38da13af","dt":"2021-1
Unterminated string starting at: line 1 column 224 (char 223)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://commons.wikimedia.org/wiki/Category:2010_in_Warsaw","request_id":"1549102e-40fe-4179-b9f4-4d6e6e30b034","id":"1d88690b-76a3-4bdf-b85e-32f3561c15a9","dt":"2021-10-12T14:19:45Z","domain":"commons.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359649401},"id":1787422127,"ty
Unterminated string starting at: line 1 column 400 (char 399)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q108875368","request_id":"8b874473-2df9-44c8-8743-90ec556ed409","id":"ee4c14b3-f619-426e-b5c6-a82b8f8f05de","dt":"2021-10-12T14:20:03Z","domain":"www.wikidata.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3359650270},"id":1558640327,"type":"edit","namespace":0,"title":"Q108875368","comment":"/* wbsetclaim-create:2||1 */ [[Property:P31]]: [[Q107494101]]","timestamp":1634048403,"us
Unterminated string starting at: line 1 column 523 (char 522)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://www.wikidata.org/wiki/Q27605150","request_id":"30e25526-f5ca-4e7e-85c7-46e9cebf05a6","id":"a422a6e0-8952-44eb-84
Unterminated string starting at: line 1 column 157 (char 156)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://meta.wikimedia.org/wiki/User:COIBot/UserReports/Pan_%C3%83_%C3%82%C2%BBabka","request_id":"c03a80aa-4dac-45b3-b35d-bfedb12c504a","id":"6b93c388-9737-4151-8dd8-841209a319f9","dt":"2021-10-12T19:32:13Z","domain":"meta.wikimedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3360164940},"id":20159708,"type":"new","namespace":2,"title":"User:COIBot/UserReports/Pan à »abka","comment":"Report for Pan Ã
Unterminated string starting at: line 1 column 504 (char 503)
WARNING: Could not load json data from
{"$schema":"/mediawiki/recentchange/1.0.0","meta":{"uri":"https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Spam/UserReports/Pan_%C3%83_%C3%82%C2%BBabka","request_id":"bc97c209-2a33-4178-b068-571634912374","id":"4b71acfa-2cbf-48cd-ab15-a5e070a80a99","dt":"2021-10-12T19:32:19Z","domain":"en.wikipedia.org","stream":"mediawiki.recentchange","topic":"eqiad.mediawiki.recentchange","partition":0,"offset":3360165139},"id":1432314258,"type":"new","namespace":4,"title":"Wikipedia:WikiProject Spam/UserReports/Pan à »abka","comment":"Report for Pan Ã
Unterminated string starting at: line 1 column 532 (char 531)

The time when the error occurred is between 2021-11-08 7:00-9:00 (UTC)

Change 789999 had a related patch set uploaded (by JJMC89; author: JJMC89):

[pywikibot/core@master] pin sseclient to < 0.0.23

https://gerrit.wikimedia.org/r/789999

Change 789999 merged by jenkins-bot:

[pywikibot/core@master] pin sseclient to < 0.0.23

https://gerrit.wikimedia.org/r/789999

This comment was removed by Xqt.
Xqt closed this task as Resolved.EditedMay 26 2022, 4:13 PM

I found 136 such errors during 10 minutes with sseclient 0.0.23 but none for sseclient 0.0.22.
Seems this is caused by this sseclient commit.

See also https://github.com/btubbs/sseclient/issues/28

Probably this patch solves it but sseclient is not maintained well.

Change 509071 abandoned by Xqt:

[pywikibot/core@master] [IMPR] Don't pass ValueError silently

Reason:

T222885 is already solved

https://gerrit.wikimedia.org/r/509071