Page MenuHomePhabricator

'TypeError: __str__ returned non-string (type SysCallError)' in HTTP requests
Open, LowPublic

Description

Sometimes (lately, more frequently) I get these errors on the console:

ERROR: Traceback (most recent call last):
File "D:\Work\pywikipedia\pywikibot\data\api.py", line 1932, in submit
body=body, headers=headers)
File "D:\Work\pywikipedia\pywikibot\tools\__init__.py", line 1267, in wrapper
return obj(*__args, **__kw)
File "D:\Work\pywikipedia\pywikibot\comms\http.py", line 245, in request
r = fetch(baseuri, method, body, headers, **kwargs)
File "D:\Work\pywikipedia\pywikibot\comms\http.py", line 401, in fetch
error_handling_callback(request)
File "D:\Work\pywikipedia\pywikibot\comms\http.py", line 318, in error_handlin
g_callback
raise request.data
TypeError: __str__ returned non-string (type SysCallError)

The error is not fatal, and the request is usually retried after some seconds.
This is not the usual "read timed out" which happens sometimes.

>pwb.py version
Pywikibot: [https] r-pywikibot-core.git (0e2a436, g6351, 2015/09/05, 10:08:04, ok)
Release version: 2.0b3
requests version: 2.7.0
  cacerts: C:\Program Files\Python\lib\site-packages\requests\cacert.pem
    certificate test: ok
Python: 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
PYWIKIBOT2_DIR: Not set
PYWIKIBOT2_DIR_PWB: D:\Work\pywikipedia
PYWIKIBOT2_NO_USER_CONFIG: Not set
Config base dir: D:\Work\pywikipedia

Event Timeline

Malafaya created this task.Sep 5 2015, 10:11 PM
Malafaya raised the priority of this task from to Low.
Malafaya updated the task description. (Show Details)
Malafaya added a project: Pywikibot.
Malafaya added a subscriber: Malafaya.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptSep 5 2015, 10:11 PM