Skip to content

Commit

Permalink
Ignore 403 response code for send exception requests (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and nmanovic committed Apr 22, 2019
1 parent 2cedb8b commit 5951e62
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cvat/apps/engine/static/engine/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class LoggerHandler {
}

addEvent(event) {
this._pushEvent(event);
this._pushEvent(event);
}

addContinuedEvent(event) {
Expand Down Expand Up @@ -102,11 +102,14 @@ class LoggerHandler {
}
};
xhr.onload = () => {
if (xhr.status == 200) {
resolve(xhr.response);
}
else {
onreject();
switch (xhr.status) {
case 200:
case 403: // ignore forbidden response
resolve(xhr.response);
break;

default:
onreject();
}
};
xhr.onerror = () => {
Expand Down

0 comments on commit 5951e62

Please sign in to comment.