diff --git a/src/lib/invoke.ts b/src/lib/invoke.ts index db153929b..e26c20821 100644 --- a/src/lib/invoke.ts +++ b/src/lib/invoke.ts @@ -13,6 +13,10 @@ export async function invoke( headers: { "Content-Type": "application/json" }, body: JSON.stringify(args), }).then(async response => { + if (response.status === 404) { + console.log("Got a 404 response:", response); + return null; + } const json = await response.json(); if (!response.ok) { throw json;