From 14ed096fa398fc3e71fd5156b8c116bbc2ad8517 Mon Sep 17 00:00:00 2001 From: Huachao Mao Date: Tue, 21 Jan 2020 10:26:24 +0800 Subject: [PATCH] Disable automatically retry on failure #490 --- src/utils/httpClient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/httpClient.ts b/src/utils/httpClient.ts index f7f3b38c..46f2fb1c 100644 --- a/src/utils/httpClient.ts +++ b/src/utils/httpClient.ts @@ -123,6 +123,7 @@ export class HttpClient { followRedirect: this._settings.followRedirect, rejectUnauthorized: false, throwHttpErrors: false, + retry: 0, hooks: { beforeRequest: [ opts => {