Andrei_Stroe created this task.
Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
I'm running pywikibot with Python 2.7.10, PyOpenSSL 0.14 and OpenSSL 1.0.2g
and I'm getting an error when trying to save large pages (such as the ro.wp
Village Pump, that has ~hundreds of KB:
ERROR: Traceback (most recent call last):
File "/work/workspace/pywikibot/pywikibot/data/api.py", line 1953, in submit
body=body, headers=headers)
File "/work/workspace/pywikibot/pywikibot/tools/__init__.py", line 1414, in
wrapper
return obj(*__args, **__kw)
File "/work/workspace/pywikibot/pywikibot/comms/http.py", line 279, in
request
r = fetch(baseuri, method, body, headers, **kwargs)
File "/work/workspace/pywikibot/pywikibot/comms/http.py", line 434, in fetch
error_handling_callback(request)
File "/work/workspace/pywikibot/pywikibot/comms/http.py", line 352, in
error_handling_callback
raise request.data
Error: [('SSL routines', 'ssl3_write_pending', 'bad write retry')]
By reading this discussion
<https://www.bountysource.com/issues/27417596-ssl3_write_pending-error-from-urllib3-contrib-pyopenssl-sendall>,
I get the idea that the issue stems from PyOpenSSL, but it seems that it
appears only in conjunction with some other bad practice of the http API.
Namely, they suggest that the POST data should not contain UTF-8 strings, but
rather a byte representation of it. Is it anything that can be done at this
level?
TASK DETAIL
https://phabricator.wikimedia.org/T133877
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Andrei_Stroe
Cc: Aklapper, Andrei_Stroe, pywikibot-bugs-list, Mdupont, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs