Skip to content

Commit e3b1e68

Browse files
authored
Increase timeout for client-side zip upload to 60 seconds (#132)
* Increase timeout for client-side zip upload to 60 seconds Previously, this used the default timeout of the `api-service` which is 10 seconds. This is too short for slow internet connections. I increased it to 60 seconds, which is the standard for most requests to our platform. Received this feedback from our community here: https://mondaymarketp.slack.com/archives/C05HD6QLV9Q/p1750879234814949?thread_ts=1748539800.596439&cid=C05HD6QLV9Q
1 parent f80fec9 commit e3b1e68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/services/push-service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export const getSignedStorageUrl = async (appVersionId: number, region?: Region)
5858
}
5959
};
6060

61+
const CLIENT_ZIP_UPLOAD_TIMEOUT = 60 * 1000;
62+
6163
export const uploadClientZipFile = async (appVersionId: number, buffer: Buffer) => {
6264
const baseUrl = getDeploymentClientUpload(appVersionId);
6365
const url = appsUrlBuilder(baseUrl);
@@ -68,6 +70,7 @@ export const uploadClientZipFile = async (appVersionId: number, buffer: Buffer)
6870
headers: { Accept: 'application/json', 'Content-Type': 'multipart/form-data' },
6971
method: HttpMethodTypes.POST,
7072
body: formData,
73+
timeout: CLIENT_ZIP_UPLOAD_TIMEOUT,
7174
});
7275
return response.data;
7376
};

0 commit comments

Comments
 (0)