Skip to content

Commit

Permalink
fix: stop to check response body and check return code;
Browse files Browse the repository at this point in the history
  • Loading branch information
sugi committed Oct 19, 2023
1 parent 75e8ed7 commit 975f9f9
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,9 @@ export function sendWithFetch(
body,
}).then(
response => {
if (response.ok) {
response.text().then(
t => diag.debug('Request Success', t),
() => {}
);
if (response.status >= 200 && response.status <= 299) {
return;
} else if (isExportRetryable(response.status) && retries > 0) {
} else if (response.status && isExportRetryable(response.status) && retries > 0) {
let retryTime: number;
minDelay = DEFAULT_EXPORT_BACKOFF_MULTIPLIER * minDelay;

Expand Down

0 comments on commit 975f9f9

Please sign in to comment.