Skip to content

Commit

Permalink
INT-8586: fix retry hang
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed Oct 24, 2023
1 parent c366e79 commit 427979d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class APIClient {
): Promise<T | undefined> {
const url = `https://${HOSTNAME}${path.startsWith('/') ? '' : '/'}${path}`;
let retryCounter = 0;
let abortRetry = false;

do {
try {
Expand Down Expand Up @@ -90,6 +91,7 @@ export class APIClient {
{ url },
'Unable to query GoDaddy endpoint due to 404 error.',
);
abortRetry = true;
} else {
throw new IntegrationProviderAPIError({
status,
Expand All @@ -98,7 +100,7 @@ export class APIClient {
});
}
}
} while (retryCounter < this.MAX_RETRIES);
} while (retryCounter < this.MAX_RETRIES && abortRetry === false);
}

public async verifyAuthentication(): Promise<void> {
Expand Down

0 comments on commit 427979d

Please sign in to comment.