Update behavior on timeout retrieving archive
This commit is contained in:
parent
4ac3f21268
commit
58db5754b6
1 changed files with 3 additions and 1 deletions
|
@ -2796,10 +2796,12 @@ export function initialize({
|
||||||
// Add a bit of leeway to let server respond properly
|
// Add a bit of leeway to let server respond properly
|
||||||
timeout: (requestTimeoutInSecs + 15) * SECOND,
|
timeout: (requestTimeoutInSecs + 15) * SECOND,
|
||||||
abortSignal,
|
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) {
|
if (response.status === 200) {
|
||||||
|
strictAssert(data !== '', '200 must have data');
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue