mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
* Catch a 403 Access denied response and handle differently to other errors where a re-try is possible
This commit is contained in:
parent
c7c07b12a7
commit
715cf3e9e6
1 changed files with 8 additions and 0 deletions
|
|
@ -8968,6 +8968,14 @@ class SyncEngine {
|
|||
// Insert a new line as well, so that the below error is inserted on the console in the right location
|
||||
if (verboseLogging) {addLogEntry("Fragment upload failed - received an exception response from OneDrive API", ["verbose"]);}
|
||||
|
||||
// HTTP request returned status code 403 (Forbidden) - Access denied
|
||||
// - There is no point here attempting a re-try
|
||||
if (exception.httpStatusCode == 403) {
|
||||
displayOneDriveErrorMessage(exception.msg, thisFunctionName);
|
||||
uploadResponse = null;
|
||||
return uploadResponse;
|
||||
}
|
||||
|
||||
// display what the error is
|
||||
if (exception.httpStatusCode != 404) {
|
||||
displayOneDriveErrorMessage(exception.msg, thisFunctionName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue