Page MenuHomePhabricator

pywikibot WARNING Offset was not supplied. with chunked upload
Closed, ResolvedPublic

Description

I'm playing around with the new upload implementation in site and chunked uploading. Chunked uploading seems to work ok, but on every upload I get a warning:

2016-04-23 08:53:29 api.py, 1925 in submit: VERBOSE Submitting unthrottled action 'upload'.
.... (repeated for every chunk)
2016-04-23 08:54:31 api.py, 1925 in submit: VERBOSE Submitting unthrottled action 'upload'.
2016-04-23 08:54:40 site.py, 5900 in upload: WARNING Offset was not supplied.
2016-04-23 08:54:40 site.py, 5903 in upload: VERBOSE Finished uploading last chunk.
2016-04-23 08:54:49 site.py, 5978 in upload: INFO Upload successful.

My assumption is that the last chunk isn't handled properly triggering this warning.
Pywikibot version Pywikibot: [https] r-pywikibot-core.git (75134ba, g7223, 2016/04/21, 22:05:31, ok)

Event Timeline

Change 277060 had a related patch set uploaded (by Zhuyifei1999):
site: Support async chunked uploads (T129216)

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

Xqt triaged this task as Low priority.Feb 3 2019, 11:21 AM

Change 679021 had a related patch set uploaded (by Inductiveload; author: Zhuyifei1999):

[pywikibot/core@master] site: Support async chunked uploads (T129216)

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

Change 679021 merged by Xqt:

[pywikibot/core@master] site: Support async chunked uploads (T129216)

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

Xqt claimed this task.

Change 277060 abandoned by Xqt:

[pywikibot/core@master] site: Support async chunked uploads (T129216)

Reason:

submitted in https://gerrit.wikimedia.org/r/c/pywikibot/core/ /679021

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