Page MenuHomePhabricator

EventStreams might fail with httplib.IncompleteRead error
Closed, ResolvedPublic

Description

processing [[sv:Horton (parish i Storbritannien, England, Staffordshire)]]...

843 pages read
0 pages written
Execution time: 56172 seconds
Read operation time: 66 seconds
Script terminated by exception:

ERROR: IncompleteRead: IncompleteRead(0 bytes read)
Traceback (most recent call last):
  File "C:\pwb\core\pwb.py", line 262, in <module>
    if not main():
  File "C:\pwb\core\pwb.py", line 255, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "C:\pwb\core\pwb.py", line 121, in run_python_file
    main_mod.__dict__)
  File ".\scripts\redirect.py", line 918, in <module>
    main()
  File ".\scripts\redirect.py", line 914, in main
    bot.run()
  File "C:\pwb\core\pywikibot\bot.py", line 1451, in run
    for page in self.generator:
  File ".\scripts\redirect.py", line 370, in retrieve_double_redirects
    for event in stream:
  File "C:\pwb\core\pywikibot\comms\eventstreams.py", line 209, in __iter__
    event = next(self.source)
  File "C:\Python27\lib\site-packages\sseclient.py", line 65, in __next__
    next_chunk = next(self.resp_iterator)
  File "C:\Python27\lib\site-packages\requests\models.py", line 673, in generate

    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "C:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 303, in stream
    for line in self.read_chunked(amt, decode_content=decode_content):
  File "C:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 447, in read_chunked
    self._update_chunk_length()
  File "C:\Python27\lib\site-packages\requests\packages\urllib3\response.py", line 401, in _update_chunk_length
    raise httplib.IncompleteRead(line)
httplib.IncompleteRead: IncompleteRead(0 bytes read)
<class 'httplib.IncompleteRead'>
CRITICAL: Closing network session.

C:\pwb\core>pause
Drücken Sie eine beliebige Taste . . .

Event Timeline

Xqt triaged this task as High priority.Jun 21 2017, 3:11 PM

Change 360742 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Solve httplib.IncompleteRead exception

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

Change 360742 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Solve httplib.IncompleteRead exception

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