File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @redocly/cli " : patch
3+ ---
4+
5+ Increased the default fetch timeout used by the ` push ` command to better support slower uploads.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { logger } from '@redocly/openapi-core';
22import type { ReadStream } from 'node:fs' ;
33import type { Readable } from 'node:stream' ;
44
5- import { DEFAULT_FETCH_TIMEOUT , SOURCE_FETCH_TIMEOUT } from '../../utils/constants.js' ;
5+ import { DEFAULT_FETCH_TIMEOUT } from '../../utils/constants.js' ;
66import fetchWithTimeout , { type FetchWithTimeoutOptions } from '../../utils/fetch-with-timeout.js' ;
77import { version } from '../../utils/package.js' ;
88import type {
@@ -125,7 +125,7 @@ class RemotesApi {
125125 const response = await this . client . request (
126126 `${ this . domain } /api/orgs/${ organizationId } /projects/${ projectId } /source` ,
127127 {
128- timeout : SOURCE_FETCH_TIMEOUT ,
128+ timeout : DEFAULT_FETCH_TIMEOUT ,
129129 method : 'GET' ,
130130 headers : {
131131 'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change 11export const OTEL_URL = 'https://otel.cloud.redocly.com' ;
22export const OTEL_TRACES_URL = process . env . OTEL_TRACES_URL || `${ OTEL_URL } /v1/traces` ;
3- export const DEFAULT_FETCH_TIMEOUT = 3000 ;
4- export const SOURCE_FETCH_TIMEOUT = 6000 ;
3+ export const DEFAULT_FETCH_TIMEOUT = 6000 ;
54export const ANONYMOUS_ID_CACHE_FILE = 'redocly-cli-anonymous-id' ;
You can’t perform that action at this time.
0 commit comments