Update behavior on timeout retrieving archive

This commit is contained in:
trevor-signal 2025-08-19 15:44:18 -04:00 committed by GitHub
commit 58db5754b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2796,10 +2796,12 @@ export function initialize({
// Add a bit of leeway to let server respond properly
timeout: (requestTimeoutInSecs + 15) * SECOND,
abortSignal,
zodSchema: TransferArchiveSchema,
// We may also get a 204 with no content, indicating we should try again
zodSchema: TransferArchiveSchema.or(z.literal('')),
});
if (response.status === 200) {
strictAssert(data !== '', '200 must have data');
return data;
}