Skip to content

Commit

Permalink
Remove retry status check from oversized
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Nov 15, 2023
1 parent 943afa6 commit 66c49f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/browser-tracker-core/src/tracker/out_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ export function OutQueueManager(
if (xhr.status >= 200 && xhr.status < 300) {
onRequestSuccess?.(batch);
} else {
if (!shouldRetryForStatusCode(xhr.status)) {
LOG.error(`Status ${xhr.status}, will not retry.`);
tryOnRequestFailure(xhr.status, xhr.statusText, batch);
}
tryOnRequestFailure(xhr.status, xhr.statusText, batch);
}
}
};
Expand Down

0 comments on commit 66c49f4

Please sign in to comment.