Xqt added a comment.
The problem is the 504 timeout code which comes prior other warnings like
upload_warnings = {
# map API warning codes to user error messages
# {msg} will be replaced by message string from API response
'duplicate-archive':
'The file is a duplicate of a deleted file {msg}.',
'was-deleted': 'The file {msg} was previously deleted.',
'emptyfile': 'File {msg} is empty.',
'exists': 'File {msg} already exists.',
'duplicate': 'Uploaded file is a duplicate of {msg}.',
'badfilename': 'Target filename is invalid.',
'filetype-unwanted-type': 'File {msg} type is unwanted type.',
'exists-normalized': 'File exists with different extension as '
'"{msg}".',
'bad-prefix': 'Target filename has a bad prefix {msg}.',
'page-exists':
'Target filename exists but with a different file {msg}.',
# API-returned message string will be timestamps, not much use here
'nochange': 'The upload is an exact duplicate of the current '
'version of this file.',
'duplicateversions': 'The upload is an exact duplicate of older '
'version(s) of this file.',
}
And retrying is an usual behaviour with this code. But maybe we could check
for the existing file after it.
TASK DETAIL
https://phabricator.wikimedia.org/T293435
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, 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]