fix(cli): add fetch param to prevent OOM of upload
Issue due to undici storing the entire request body in memory. Related undici bug report: https://github.com/nodejs/undici/issues/4058 Fixes https://github.com/immich-app/immich/issues/28720 Signed-off-by: moversity <148445403+moversity@users.noreply.github.com>pull/28723/head
parent
963862b1b9
commit
43ac1afdb6
|
|
@ -426,6 +426,7 @@ const uploadFile = async (input: string, stats: Stats): Promise<AssetMediaRespon
|
|||
redirect: 'error',
|
||||
headers: headers as Record<string, string>,
|
||||
body: formData,
|
||||
window: null,
|
||||
});
|
||||
if (response.status !== 200 && response.status !== 201) {
|
||||
throw new Error(await response.text());
|
||||
|
|
|
|||
Loading…
Reference in New Issue