Page MenuHomePhabricator

Handle upload errors caused by network connection issues better in the upload dialog
Closed, ResolvedPublic

Description

The upload dialog should handle upload errors caused by network connection issues better. Example from IRC:

<BrownFig21> Anybody know what this error means when attempting to upload an img? http://puu.sh/ogVW1/f226fc20a3.png

ss+(2016-04-13+at+01.54.10).png (296×498 px, 17 KB)

There's some error code for timeouts as well, which I don't think we handle either.

Event Timeline

Restricted Application added subscribers: Steinsplitter, Aklapper. · View Herald Transcript

I am being able to reproduce this bug even though my network connection seems fine.

MarkTraceur triaged this task as Medium priority.Dec 5 2016, 5:23 PM
MarkTraceur moved this task from Untriaged to Triaged on the Multimedia board.

Change 361885 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/core@master] Perform chunked uploads from upload dialog

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

https://gerrit.wikimedia.org/r/#/c/339371/ & https://gerrit.wikimedia.org/r/#/c/361884/ add chunked upload support to mw.api.
https://gerrit.wikimedia.org/r/#/c/361885/ will let upload dialog use these.

I expect chunked uploading to be more resilient to these issues: instead of 1 huge chunk that could fail anytime, it'll split it up into multiple chunks, each of which will be re-attempted (once, by default) should it fail.

Next up: look into that horrible error message.

Change 362196 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/core@master] Improve error messages for (known unknown) network errors

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

matthiasmullie lowered the priority of this task from Medium to Low.
matthiasmullie moved this task from Next up to Needs code review on the Multimedia board.

Change 362196 merged by Matthias Mullie:
[mediawiki/core@master] Improve error messages for (known unknown) network errors

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

Change 361885 merged by jenkins-bot:
[mediawiki/core@master] Perform chunked uploads from upload dialog

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