Don't automatically retry sync for 400 errors (now) sent from the server
This commit is contained in:
parent
aff9c1746a
commit
1d43d274ac
1 changed files with 9 additions and 0 deletions
|
@ -1700,6 +1700,15 @@ Zotero.Sync.Server = new function () {
|
|||
}
|
||||
|
||||
if (firstChild.localName == 'error') {
|
||||
// Don't automatically retry 400 errors
|
||||
if (xmlhttp.status >= 400 && xmlhttp.status < 500) {
|
||||
Zotero.debug("Server returned " + xmlhttp.status + " -- manual sync required", 2);
|
||||
Zotero.Sync.Server.manualSyncRequired = true;
|
||||
}
|
||||
else {
|
||||
Zotero.debug("Server returned " + xmlhttp.status, 3);
|
||||
}
|
||||
|
||||
switch (firstChild.getAttribute('code')) {
|
||||
case 'INVALID_UPLOAD_DATA':
|
||||
// On the off-chance that this error is due to invalid characters
|
||||
|
|
Loading…
Reference in a new issue