From 77659bcab5156c32ff9659e358968ee1b59614d4 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 20:26:36 +0000 Subject: [PATCH] fix: handle errors in chat API route --- app/routes/api.chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/api.chat.ts b/app/routes/api.chat.ts index b685ac853a..00aa3a47a6 100644 --- a/app/routes/api.chat.ts +++ b/app/routes/api.chat.ts @@ -51,7 +51,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) { } catch (error) { console.log(error); - throw new Response(null, { + return new Response(null, { status: 500, statusText: 'Internal Server Error', });