Inductiveload created this task.
Inductiveload added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Internet-Archive.
TASK DESCRIPTION
**List of steps to reproduce** (step by step, including full links if
applicable):
- Attempt to copy-upload a file from the Internet Archive using Pywikibot:
site.upload(filepage, source_url=file_url,
comment=desc)
**What happens?**:
- If the upload succeeds, the call still hangs:
File "./script.py", line 105, in upload
self.site.upload(filepage, source_url=file_url,
File "/usr/lib/python3.9/site-packages/pywikibot/tools/_deprecate.py", line
404, in wrapper
return obj(*__args, **__kw)
File "/usr/lib/python3.9/site-packages/pywikibot/site/_decorators.py", line
92, in callee
return fn(self, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/pywikibot/site/_apisite.py", line
2869, in upload
result = final_request.submit()
File "/usr/lib/python3.9/site-packages/pywikibot/data/api.py", line 1757,
in submit
response, use_get = self._http_request(use_get, uri, body, headers,
File "/usr/lib/python3.9/site-packages/pywikibot/data/api.py", line 1510,
in _http_request
self.wait()
File "/usr/lib/python3.9/site-packages/pywikibot/data/api.py", line 1892,
in wait
pywikibot.sleep(delay)
File "/usr/lib/python3.9/site-packages/pywikibot/__init__.py", line 1305,
in sleep
Changing `pywikibot.config.socket_timeout` to something like `(1, 1)` has no
obvious effect.
**What should have happened instead?**:
- Call either succeeds, or times out and allows the script to continue.
**Software version (if not a Wikimedia wiki), browser information,
screenshots, other information, etc**:
TASK DETAIL
https://phabricator.wikimedia.org/T293435
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Inductiveload
Cc: Aklapper, Inductiveload, pywikibot-bugs-list, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Biazzzzoo, Philoserf, Khutuck, Zkhalido, Ironie, Viztor,
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis,
mys_721tx, Hydriz, jayvdb, Masti, Alchimista, Jay8g
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]