Update behavior on timeout retrieving archive

This commit is contained in:
trevor-signal
2025-08-19 15:44:18 -04:00
committed by GitHub
parent 4ac3f21268
commit 58db5754b6

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;
}