From e1836634c71f88314400048ee9a29c591fc4ff8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Mon, 7 Feb 2022 16:15:10 +0100 Subject: [PATCH] fix(javascript): node timeouts --- .../algoliasearch-client-javascript/client-abtesting/node.ts | 4 ++-- .../algoliasearch-client-javascript/client-analytics/node.ts | 4 ++-- .../algoliasearch-client-javascript/client-insights/node.ts | 4 ++-- .../client-personalization/node.ts | 4 ++-- .../client-query-suggestions/node.ts | 4 ++-- clients/algoliasearch-client-javascript/client-search/node.ts | 4 ++-- .../algoliasearch-client-javascript/client-sources/node.ts | 4 ++-- clients/algoliasearch-client-javascript/recommend/node.ts | 4 ++-- templates/javascript/api.mustache | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/clients/algoliasearch-client-javascript/client-abtesting/node.ts b/clients/algoliasearch-client-javascript/client-abtesting/node.ts index efe09f497e..ec1312f6f0 100644 --- a/clients/algoliasearch-client-javascript/client-abtesting/node.ts +++ b/clients/algoliasearch-client-javascript/client-abtesting/node.ts @@ -26,8 +26,8 @@ export function abtestingApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-analytics/node.ts b/clients/algoliasearch-client-javascript/client-analytics/node.ts index 0adfd8f249..38d1bc79d6 100644 --- a/clients/algoliasearch-client-javascript/client-analytics/node.ts +++ b/clients/algoliasearch-client-javascript/client-analytics/node.ts @@ -26,8 +26,8 @@ export function analyticsApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-insights/node.ts b/clients/algoliasearch-client-javascript/client-insights/node.ts index 057956b781..3c6d851d04 100644 --- a/clients/algoliasearch-client-javascript/client-insights/node.ts +++ b/clients/algoliasearch-client-javascript/client-insights/node.ts @@ -26,8 +26,8 @@ export function insightsApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-personalization/node.ts b/clients/algoliasearch-client-javascript/client-personalization/node.ts index 2cb84dcd7a..3935349c08 100644 --- a/clients/algoliasearch-client-javascript/client-personalization/node.ts +++ b/clients/algoliasearch-client-javascript/client-personalization/node.ts @@ -30,8 +30,8 @@ export function personalizationApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts b/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts index 074fbcfb1f..d3d9ac8460 100644 --- a/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts +++ b/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts @@ -30,8 +30,8 @@ export function querySuggestionsApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-search/node.ts b/clients/algoliasearch-client-javascript/client-search/node.ts index 23d2b07da5..e300e55559 100644 --- a/clients/algoliasearch-client-javascript/client-search/node.ts +++ b/clients/algoliasearch-client-javascript/client-search/node.ts @@ -25,8 +25,8 @@ export function searchApi( apiKey, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/client-sources/node.ts b/clients/algoliasearch-client-javascript/client-sources/node.ts index 9a6efef352..fb35a43364 100644 --- a/clients/algoliasearch-client-javascript/client-sources/node.ts +++ b/clients/algoliasearch-client-javascript/client-sources/node.ts @@ -30,8 +30,8 @@ export function sourcesApi( apiKey, region, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/clients/algoliasearch-client-javascript/recommend/node.ts b/clients/algoliasearch-client-javascript/recommend/node.ts index 247fbac0d5..1bf340c434 100644 --- a/clients/algoliasearch-client-javascript/recommend/node.ts +++ b/clients/algoliasearch-client-javascript/recommend/node.ts @@ -25,8 +25,8 @@ export function recommendApi( apiKey, timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(), diff --git a/templates/javascript/api.mustache b/templates/javascript/api.mustache index c2529416b2..5ef0733311 100644 --- a/templates/javascript/api.mustache +++ b/templates/javascript/api.mustache @@ -40,8 +40,8 @@ export function {{apiName}}Api( apiKey, {{#hasRegionalHost}}region,{{/hasRegionalHost}} timeouts: { - connect: 1, - read: 2, + connect: 2, + read: 5, write: 30, }, requester: options?.requester ?? new HttpRequester(),