mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-07 16:32:12 +02:00
Update PR
* Update PR
This commit is contained in:
parent
69efb0ef39
commit
0728b1d7c8
133
src/sync.d
133
src/sync.d
|
@ -1527,7 +1527,7 @@ final class SyncEngine
|
||||||
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// "OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request"
|
// OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,124));
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("changes = generateDeltaResponse(driveId, idToQuery) previously threw an error - retrying");
|
log.vdebug("changes = generateDeltaResponse(driveId, idToQuery) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
|
@ -1608,7 +1608,7 @@ final class SyncEngine
|
||||||
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// "OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request"
|
// OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,124));
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) previously threw an error - retrying");
|
log.vdebug("changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
|
@ -1625,7 +1625,7 @@ final class SyncEngine
|
||||||
// display what the error is
|
// display what the error is
|
||||||
log.vdebug("Query Error: changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) on re-try after delay");
|
log.vdebug("Query Error: changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) on re-try after delay");
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// "OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request"
|
// OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,124));
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) previously threw an error - retrying with empty deltaLink");
|
log.vdebug("changes = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLink) previously threw an error - retrying with empty deltaLink");
|
||||||
try {
|
try {
|
||||||
|
@ -1714,7 +1714,7 @@ final class SyncEngine
|
||||||
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
// If an error is returned when querying 'changes' and we recall the original function, we go into a never ending loop where the sync never ends
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// "OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request"
|
// OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,124));
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) previously threw an error - retrying");
|
log.vdebug("changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
|
@ -1731,7 +1731,7 @@ final class SyncEngine
|
||||||
// display what the error is
|
// display what the error is
|
||||||
log.vdebug("Query Error: changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) on re-try after delay");
|
log.vdebug("Query Error: changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) on re-try after delay");
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// "OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request"
|
// OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query the OneDrive API - retrying applicable request
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,124));
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) previously threw an error - retrying with empty deltaLinkAvailable");
|
log.vdebug("changesAvailable = onedrive.viewChangesByItemId(driveId, idToQuery, deltaLinkAvailable) previously threw an error - retrying with empty deltaLinkAvailable");
|
||||||
try {
|
try {
|
||||||
|
@ -3689,7 +3689,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3697,9 +3697,10 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// HTTP request returned status code 404 - the eTag provided does not exist
|
// HTTP request returned status code 404 - the eTag provided does not exist on OneDrive
|
||||||
// Delete record from the local database - file will be uploaded as a new file
|
// Delete record from the local database - file will be uploaded as a new file
|
||||||
log.vlog("OneDrive returned a 'HTTP 404 - eTag Issue' - gracefully handling error");
|
// "OneDrive returned a 'HTTP 404 - item eTag does not exist' - gracefully handling error"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,314));
|
||||||
itemdb.deleteById(item.driveId, item.id);
|
itemdb.deleteById(item.driveId, item.id);
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
|
@ -3724,7 +3725,8 @@ final class SyncEngine
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// HTTP request returned status code 412 - ETag does not match current item's value
|
// HTTP request returned status code 412 - ETag does not match current item's value
|
||||||
// Delete record from the local database - file will be uploaded as a new file
|
// Delete record from the local database - file will be uploaded as a new file
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file.");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file."
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,316));
|
||||||
log.vdebug("Simple Upload Replace Failed - OneDrive eTag / cTag match issue (Personal Account)");
|
log.vdebug("Simple Upload Replace Failed - OneDrive eTag / cTag match issue (Personal Account)");
|
||||||
itemdb.deleteById(item.driveId, item.id);
|
itemdb.deleteById(item.driveId, item.id);
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
|
@ -3732,9 +3734,9 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request as a session");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Try upload as a session
|
// Retry original action
|
||||||
response = session.upload(path, item.driveId, item.parentId, baseName(path), item.eTag);
|
response = onedrive.simpleUploadReplace(path, item.driveId, item.id, item.eTag);
|
||||||
} else {
|
} else {
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
|
@ -3765,7 +3767,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3775,7 +3777,8 @@ final class SyncEngine
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// HTTP request returned status code 412 - ETag does not match current item's value
|
// HTTP request returned status code 412 - ETag does not match current item's value
|
||||||
// Delete record from the local database - file will be uploaded as a new file
|
// Delete record from the local database - file will be uploaded as a new file
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file.");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file."
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,316));
|
||||||
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Personal Account)");
|
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Personal Account)");
|
||||||
itemdb.deleteById(item.driveId, item.id);
|
itemdb.deleteById(item.driveId, item.id);
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
|
@ -3842,7 +3845,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3866,7 +3869,8 @@ final class SyncEngine
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// HTTP request returned status code 412 - ETag does not match current item's value
|
// HTTP request returned status code 412 - ETag does not match current item's value
|
||||||
// Delete record from the local database - file will be uploaded as a new file
|
// Delete record from the local database - file will be uploaded as a new file
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file.");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file."
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,316));
|
||||||
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Business Account)");
|
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Business Account)");
|
||||||
itemdb.deleteById(item.driveId, item.id);
|
itemdb.deleteById(item.driveId, item.id);
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
|
@ -4081,7 +4085,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -4105,7 +4109,8 @@ final class SyncEngine
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// HTTP request returned status code 412 - ETag does not match current item's value
|
// HTTP request returned status code 412 - ETag does not match current item's value
|
||||||
// Delete record from the local database - file will be uploaded as a new file
|
// Delete record from the local database - file will be uploaded as a new file
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file.");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file."
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,316));
|
||||||
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Sharepoint Library)");
|
log.vdebug("Session Upload Replace Failed - OneDrive eTag / cTag match issue (Sharepoint Library)");
|
||||||
itemdb.deleteById(item.driveId, item.id);
|
itemdb.deleteById(item.driveId, item.id);
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
|
@ -4809,7 +4814,8 @@ final class SyncEngine
|
||||||
if (e.httpStatusCode == 400) {
|
if (e.httpStatusCode == 400) {
|
||||||
// "Skipping uploading this new file: ", buildNormalizedPath(absolutePath(path))
|
// "Skipping uploading this new file: ", buildNormalizedPath(absolutePath(path))
|
||||||
log.log(provideLanguageTranslation(languageIdentifier,239), buildNormalizedPath(absolutePath(path)));
|
log.log(provideLanguageTranslation(languageIdentifier,239), buildNormalizedPath(absolutePath(path)));
|
||||||
log.vlog("Skipping item - OneDrive returned a 'HTTP 400 - Bad Request' when attempting to query if file exists");
|
// "Skipping item - OneDrive returned a 'HTTP 400 - Bad Request' when attempting to query if file exists"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,319));
|
||||||
// "ERROR: To resolve, rename this local file: ", buildNormalizedPath(absolutePath(path))
|
// "ERROR: To resolve, rename this local file: ", buildNormalizedPath(absolutePath(path))
|
||||||
log.error(provideLanguageTranslation(languageIdentifier,240), buildNormalizedPath(absolutePath(path)));
|
log.error(provideLanguageTranslation(languageIdentifier,240), buildNormalizedPath(absolutePath(path)));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
|
@ -4817,7 +4823,8 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error'
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error'
|
||||||
if (e.httpStatusCode == 401) {
|
if (e.httpStatusCode == 401) {
|
||||||
log.vlog("Skipping item - OneDrive returned a 'HTTP 401 - Unauthorized' when attempting to query if file exists");
|
// "Skipping item - OneDrive returned a 'HTTP 401 - Unauthorized' when attempting to query if file exists"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,313));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4853,7 +4860,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4867,7 +4874,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
uploadNewFile(path);
|
uploadNewFile(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -4907,7 +4914,7 @@ final class SyncEngine
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
// OneDrive returned a 'HTTP/1.1 401 Unauthorized Error' - file failed to be uploaded
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4923,7 +4930,7 @@ final class SyncEngine
|
||||||
|
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request as a session");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Try upload as a session
|
// Try upload as a session
|
||||||
try {
|
try {
|
||||||
response = session.upload(path, parent.driveId, parent.id, baseName(path));
|
response = session.upload(path, parent.driveId, parent.id, baseName(path));
|
||||||
|
@ -4974,7 +4981,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4988,7 +4995,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
uploadNewFile(path);
|
uploadNewFile(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -5023,7 +5030,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5037,7 +5044,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
uploadNewFile(path);
|
uploadNewFile(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -5246,7 +5253,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5263,7 +5270,7 @@ final class SyncEngine
|
||||||
|
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request as a session");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Try upload as a session
|
// Try upload as a session
|
||||||
try {
|
try {
|
||||||
response = session.upload(path, parent.driveId, parent.id, baseName(path));
|
response = session.upload(path, parent.driveId, parent.id, baseName(path));
|
||||||
|
@ -5320,7 +5327,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5335,7 +5342,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
uploadNewFile(path);
|
uploadNewFile(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -5412,7 +5419,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5427,7 +5434,7 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying upload request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
uploadNewFile(path);
|
uploadNewFile(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -5601,7 +5608,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
|
@ -5636,7 +5643,7 @@ final class SyncEngine
|
||||||
// caught an error, write out we are skipping this item
|
// caught an error, write out we are skipping this item
|
||||||
// "skipped."
|
// "skipped."
|
||||||
writeln(provideLanguageTranslation(languageIdentifier,198));
|
writeln(provideLanguageTranslation(languageIdentifier,198));
|
||||||
log.vlog("OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error");
|
log.vlog(provideLanguageTranslation(languageIdentifier,312));
|
||||||
uploadFailed = true;
|
uploadFailed = true;
|
||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
|
@ -5855,7 +5862,8 @@ final class SyncEngine
|
||||||
// OneDrive threw a 412 error, most likely: ETag does not match current item's value
|
// OneDrive threw a 412 error, most likely: ETag does not match current item's value
|
||||||
// Retry without eTag
|
// Retry without eTag
|
||||||
log.vdebug("File Metadata Update Failed - OneDrive eTag / cTag match issue");
|
log.vdebug("File Metadata Update Failed - OneDrive eTag / cTag match issue");
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting file time stamp update - gracefully handling error");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting file time stamp update - gracefully handling error"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,317));
|
||||||
string nullTag = null;
|
string nullTag = null;
|
||||||
response = onedrive.updateById(driveId, id, data, nullTag);
|
response = onedrive.updateById(driveId, id, data, nullTag);
|
||||||
}
|
}
|
||||||
|
@ -6034,7 +6042,8 @@ final class SyncEngine
|
||||||
// OneDrive threw a 412 error, most likely: ETag does not match current item's value
|
// OneDrive threw a 412 error, most likely: ETag does not match current item's value
|
||||||
// Retry without eTag
|
// Retry without eTag
|
||||||
log.vdebug("File Move Failed - OneDrive eTag / cTag match issue");
|
log.vdebug("File Move Failed - OneDrive eTag / cTag match issue");
|
||||||
log.vlog("OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting to move the file - gracefully handling error");
|
// "OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting to move the file - gracefully handling error"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,318));
|
||||||
string nullTag = null;
|
string nullTag = null;
|
||||||
// move the file but without the eTag
|
// move the file but without the eTag
|
||||||
response = onedrive.updateById(fromItem.driveId, fromItem.id, diff, nullTag);
|
response = onedrive.updateById(fromItem.driveId, fromItem.id, diff, nullTag);
|
||||||
|
@ -6164,7 +6173,7 @@ final class SyncEngine
|
||||||
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query Sharepoint Sites - retrying applicable request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("siteQuery = onedrive.o365SiteSearch(nextLink) previously threw an error - retrying");
|
log.vdebug("siteQuery = onedrive.o365SiteSearch(nextLink) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
||||||
|
@ -6348,7 +6357,7 @@ final class SyncEngine
|
||||||
|
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
createShareableLinkForFile(filePath);
|
createShareableLinkForFile(filePath);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -6486,7 +6495,7 @@ final class SyncEngine
|
||||||
|
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
// HTTP request returned status code 504 (Gateway Timeout)
|
// HTTP request returned status code 504 (Gateway Timeout)
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' - retrying request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
// Retry original request by calling function again to avoid replicating any further error handling
|
// Retry original request by calling function again to avoid replicating any further error handling
|
||||||
queryDriveForChanges(path);
|
queryDriveForChanges(path);
|
||||||
// return back to original call
|
// return back to original call
|
||||||
|
@ -6845,9 +6854,12 @@ final class SyncEngine
|
||||||
// HTTP request returned status code 404 (Not Found)
|
// HTTP request returned status code 404 (Not Found)
|
||||||
if (e.httpStatusCode == 404) {
|
if (e.httpStatusCode == 404) {
|
||||||
// Stop application
|
// Stop application
|
||||||
log.log("\n\nOneDrive returned a 'HTTP 404 - Item not found'");
|
// "OneDrive returned a 'HTTP 404 - Item not found' - gracefully handling error"
|
||||||
log.log("The item id to query was not found on OneDrive");
|
log.log(provideLanguageTranslation(languageIdentifier,315));
|
||||||
log.log("\nRemove your '", cfg.databaseFilePath, "' file and try to sync again\n");
|
// "ERROR: The requested item to query was not found on OneDrive"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,302));
|
||||||
|
// "\nRemove your '", cfg.databaseFilePath, "' file and try to sync again\n"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,303), cfg.databaseFilePath, provideLanguageTranslation(languageIdentifier,304));
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTP request returned status code 429 (Too Many Requests)
|
// HTTP request returned status code 429 (Too Many Requests)
|
||||||
|
@ -6867,7 +6879,7 @@ final class SyncEngine
|
||||||
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query OneDrive drive children - retrying applicable request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("topLevelChildren = onedrive.listChildren(driveId, idToQuery, nextLink) previously threw an error - retrying");
|
log.vdebug("topLevelChildren = onedrive.listChildren(driveId, idToQuery, nextLink) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
||||||
|
@ -6892,7 +6904,8 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
// process top level children
|
// process top level children
|
||||||
log.vlog("Adding ", count(topLevelChildren["value"].array), " OneDrive items for processing from OneDrive folder");
|
// "Adding ", count(topLevelChildren["value"].array), " OneDrive items for processing from OneDrive folder"
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,305), count(topLevelChildren["value"].array), provideLanguageTranslation(languageIdentifier,306));
|
||||||
foreach (child; topLevelChildren["value"].array) {
|
foreach (child; topLevelChildren["value"].array) {
|
||||||
// add this child to the array of objects
|
// add this child to the array of objects
|
||||||
childrenData ~= child;
|
childrenData ~= child;
|
||||||
|
@ -6956,9 +6969,12 @@ final class SyncEngine
|
||||||
// HTTP request returned status code 404 (Not Found)
|
// HTTP request returned status code 404 (Not Found)
|
||||||
if (e.httpStatusCode == 404) {
|
if (e.httpStatusCode == 404) {
|
||||||
// Stop application
|
// Stop application
|
||||||
log.log("\n\nOneDrive returned a 'HTTP 404 - Item not found'");
|
// "OneDrive returned a 'HTTP 404 - Item not found' - gracefully handling error"
|
||||||
log.log("The item id to query was not found on OneDrive");
|
log.log(provideLanguageTranslation(languageIdentifier,315));
|
||||||
log.log("\nRemove your '", cfg.databaseFilePath, "' file and try to sync again\n");
|
// "ERROR: The requested item to query was not found on OneDrive"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,302));
|
||||||
|
// "\nRemove your '", cfg.databaseFilePath, "' file and try to sync again\n"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,303), cfg.databaseFilePath, provideLanguageTranslation(languageIdentifier,304));
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTP request returned status code 429 (Too Many Requests)
|
// HTTP request returned status code 429 (Too Many Requests)
|
||||||
|
@ -6978,7 +6994,7 @@ final class SyncEngine
|
||||||
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
if ((e.httpStatusCode == 429) || (e.httpStatusCode == 504)) {
|
||||||
// re-try the specific changes queries
|
// re-try the specific changes queries
|
||||||
if (e.httpStatusCode == 504) {
|
if (e.httpStatusCode == 504) {
|
||||||
log.log("OneDrive returned a 'HTTP 504 - Gateway Timeout' when attempting to query OneDrive drive children - retrying applicable request");
|
log.log(provideLanguageTranslation(languageIdentifier,124));
|
||||||
log.vdebug("thisLevelChildren = onedrive.listChildren(driveId, idToQuery, nextLink) previously threw an error - retrying");
|
log.vdebug("thisLevelChildren = onedrive.listChildren(driveId, idToQuery, nextLink) previously threw an error - retrying");
|
||||||
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
// The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request.
|
||||||
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
log.vdebug("Thread sleeping for 30 seconds as the server did not receive a timely response from the upstream server it needed to access in attempting to complete the request");
|
||||||
|
@ -7009,7 +7025,8 @@ final class SyncEngine
|
||||||
// /Level 1/Level 2/Level 3/Child Shared Folder/some folder/another folder
|
// /Level 1/Level 2/Level 3/Child Shared Folder/some folder/another folder
|
||||||
// But 'Child Shared Folder' is what is shared, thus '/Level 1/Level 2/Level 3/' is a potential information leak if logged.
|
// But 'Child Shared Folder' is what is shared, thus '/Level 1/Level 2/Level 3/' is a potential information leak if logged.
|
||||||
// Plus, the application output now shows accuratly what is being shared - so that is a good thing.
|
// Plus, the application output now shows accuratly what is being shared - so that is a good thing.
|
||||||
log.vlog("Adding ", count(thisLevelChildren["value"].array), " OneDrive items for processing from ", pathForLogging);
|
// "Adding ", count(thisLevelChildren["value"].array), " OneDrive items for processing from ", pathForLogging
|
||||||
|
log.vlog(provideLanguageTranslation(languageIdentifier,305), count(thisLevelChildren["value"].array), provideLanguageTranslation(languageIdentifier,307), pathForLogging);
|
||||||
}
|
}
|
||||||
foreach (child; thisLevelChildren["value"].array) {
|
foreach (child; thisLevelChildren["value"].array) {
|
||||||
// add this child to the array of objects
|
// add this child to the array of objects
|
||||||
|
@ -7049,13 +7066,15 @@ final class SyncEngine
|
||||||
void listOneDriveBusinessSharedFolders()
|
void listOneDriveBusinessSharedFolders()
|
||||||
{
|
{
|
||||||
// List OneDrive Business Shared Folders
|
// List OneDrive Business Shared Folders
|
||||||
log.log("\nListing available OneDrive Business Shared Folders:");
|
// "\nListing available OneDrive Business Shared Folders:"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,308));
|
||||||
// Query the GET /me/drive/sharedWithMe API
|
// Query the GET /me/drive/sharedWithMe API
|
||||||
JSONValue graphQuery = onedrive.getSharedWithMe();
|
JSONValue graphQuery = onedrive.getSharedWithMe();
|
||||||
if (graphQuery.type() == JSONType.object) {
|
if (graphQuery.type() == JSONType.object) {
|
||||||
if (count(graphQuery["value"].array) == 0) {
|
if (count(graphQuery["value"].array) == 0) {
|
||||||
// no shared folders returned
|
// no shared folders returned
|
||||||
write("\nNo OneDrive Business Shared Folders were returned\n");
|
// "\nNo OneDrive Business Shared Folders were returned\n"
|
||||||
|
log.log(provideLanguageTranslation(languageIdentifier,309));
|
||||||
} else {
|
} else {
|
||||||
// shared folders were returned
|
// shared folders were returned
|
||||||
log.vdebug("onedrive.getSharedWithMe API Response: ", graphQuery);
|
log.vdebug("onedrive.getSharedWithMe API Response: ", graphQuery);
|
||||||
|
@ -7099,10 +7118,11 @@ final class SyncEngine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
write("\n");
|
writeln("");
|
||||||
} else {
|
} else {
|
||||||
// Log that an invalid JSON object was returned
|
// Log that an invalid JSON object was returned
|
||||||
log.error("ERROR: onedrive.getSharedWithMe call returned an invalid JSON Object");
|
// "ERROR: onedrive.getSharedWithMe call returned an invalid JSON Object"
|
||||||
|
log.error(provideLanguageTranslation(languageIdentifier,310));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7116,7 +7136,8 @@ final class SyncEngine
|
||||||
calculatedPath = itemdb.computePath(thisDriveId, thisItemId);
|
calculatedPath = itemdb.computePath(thisDriveId, thisItemId);
|
||||||
} catch (core.exception.AssertError) {
|
} catch (core.exception.AssertError) {
|
||||||
// broken tree in the database, we cant compute the path for this item id, exit
|
// broken tree in the database, we cant compute the path for this item id, exit
|
||||||
log.error("ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database.");
|
// "ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database."
|
||||||
|
log.error(provideLanguageTranslation(languageIdentifier,311));
|
||||||
// Must exit here to preserve data
|
// Must exit here to preserve data
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -453,6 +453,24 @@ void initialise_EN_AU(){
|
||||||
JSONValue([ "299": " seconds" ]),
|
JSONValue([ "299": " seconds" ]),
|
||||||
JSONValue([ "300": "Adding OneDrive root details for processing" ]),
|
JSONValue([ "300": "Adding OneDrive root details for processing" ]),
|
||||||
JSONValue([ "301": "Adding OneDrive folder details for processing" ]),
|
JSONValue([ "301": "Adding OneDrive folder details for processing" ]),
|
||||||
|
JSONValue([ "302": "ERROR: The requested item to query was not found on OneDrive" ]),
|
||||||
|
JSONValue([ "303": "\nRemove your '" ]),
|
||||||
|
JSONValue([ "304": "' file and try to sync again\n" ]),
|
||||||
|
JSONValue([ "305": "Adding " ]),
|
||||||
|
JSONValue([ "306": " OneDrive items for processing from OneDrive folder" ]),
|
||||||
|
JSONValue([ "307": " OneDrive items for processing from " ]),
|
||||||
|
JSONValue([ "308": "\nListing available OneDrive Business Shared Folders:" ]),
|
||||||
|
JSONValue([ "309": "\nNo OneDrive Business Shared Folders were returned\n" ]),
|
||||||
|
JSONValue([ "310": "ERROR: onedrive.getSharedWithMe call returned an invalid JSON Object" ]),
|
||||||
|
JSONValue([ "311": "ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database." ]),
|
||||||
|
JSONValue([ "312": "OneDrive returned a 'HTTP 401 - Unauthorized' - gracefully handling error" ]),
|
||||||
|
JSONValue([ "313": "Skipping item - OneDrive returned a 'HTTP 401 - Unauthorized' when attempting to query if file exists" ]),
|
||||||
|
JSONValue([ "314": "OneDrive returned a 'HTTP 404 - Item eTag does not exist' - gracefully handling error" ]),
|
||||||
|
JSONValue([ "315": "OneDrive returned a 'HTTP 404 - Item not found' - gracefully handling error" ]),
|
||||||
|
JSONValue([ "316": "OneDrive returned a 'HTTP 412 - Precondition Failed' - gracefully handling error. Will upload as new file." ]),
|
||||||
|
JSONValue([ "317": "OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting file time stamp update - gracefully handling error" ]),
|
||||||
|
JSONValue([ "318": "OneDrive returned a 'HTTP 412 - Precondition Failed' when attempting to move the file - gracefully handling error" ]),
|
||||||
|
JSONValue([ "319": "Skipping item - OneDrive returned a 'HTTP 400 - Bad Request' when attempting to query if file exists" ]),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue