fix(sdk-js): Remove default fetch timeout (#3353)

This commit is contained in:
Brace Sproul
2025-02-07 12:34:32 -08:00
committed by GitHub
+3 -3
View File
@@ -78,7 +78,7 @@ interface ClientConfig {
class BaseClient {
protected asyncCaller: AsyncCaller;
protected timeoutMs: number;
protected timeoutMs: number | undefined;
protected apiUrl: string;
@@ -91,7 +91,7 @@ class BaseClient {
...config?.callerOptions,
});
this.timeoutMs = config?.timeoutMs || 12_000;
this.timeoutMs = config?.timeoutMs;
// default limit being capped by Chrome
// https://github.com/nodejs/undici/issues/1373
@@ -131,7 +131,7 @@ class BaseClient {
if (options.timeoutMs != null) {
timeoutSignal = AbortSignal.timeout(options.timeoutMs);
}
} else {
} else if (this.timeoutMs != null) {
timeoutSignal = AbortSignal.timeout(this.timeoutMs);
}