Skip to content

Commit b3dad05

Browse files
fix: increase storage/groups timeout (#1510)
1 parent b4c44e9 commit b3dad05

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/services/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
279279
fields_required: preparedFieldsRequired,
280280
// Do not send empty string
281281
filter: filter || undefined,
282+
timeout: 20_000,
282283
...params,
283284
},
284285
{concurrentId, requestConfig: {signal}},

src/types/api/storage.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,10 @@ export interface GroupsRequestParams extends BaseStorageRequestParams {
328328
filter_group_by?: GroupsGroupByField;
329329
filter_group?: string;
330330
fieldsRequired?: GroupsRequiredField[] | 'all';
331+
332+
/**
333+
* Backend timeout, default 10_000
334+
* 50% - BSC timeout
335+
*/
336+
timeout?: number;
331337
}

0 commit comments

Comments
 (0)