Skip to content

Commit 6bad4f0

Browse files
authored
feat: No timeout for fileuploads (#124)
1 parent b305ce3 commit 6bad4f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ApiClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export class ApiClient {
6060

6161
try {
6262
const response = await fetch(`${this.apiConfig.baseUrl}${url}`, {
63-
signal,
63+
signal:
64+
requestContentType === 'multipart/form-data' ? undefined : signal,
6465
method,
6566
body: encodedBody,
6667
headers,

src/StreamClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class StreamClient extends CommonApi {
4747
const timeout = config?.timeout ?? StreamClient.DEFAULT_TIMEOUT;
4848
const chatBaseUrl = config?.basePath ?? 'https://chat.stream-io-api.com';
4949
const videoBaseUrl = config?.basePath ?? 'https://video.stream-io-api.com';
50-
const feedsBaseUrl = config?.basePath ?? 'https://video.stream-io-api.com';
50+
const feedsBaseUrl = config?.basePath ?? 'https://feeds.stream-io-api.com';
5151
const chatApiClient = new ApiClient({
5252
apiKey,
5353
token,

0 commit comments

Comments
 (0)