diff --git a/utilsApi/cached-proxy.ts b/utilsApi/cached-proxy.ts index 6e1f5367c..5710baa8c 100644 --- a/utilsApi/cached-proxy.ts +++ b/utilsApi/cached-proxy.ts @@ -68,7 +68,7 @@ export const createCachedProxy = ({ if (e instanceof FetcherError && e.status >= 400 && e.status < 500) { console.warn(`[CachedProxy]Forwarding ${e.status} error from ${url}`); res.status(e.status); - res.send({ error: e.message }); + res.json({ error: e.message }); return; } console.warn(`[CachedProxy] Failed to proxy from ${url}`, e);