Closed spullara closed 2 days ago
fix:
diff --git a/node_modules/@fal-ai/server-proxy/src/index.js b/node_modules/@fal-ai/server-proxy/src/index.js
index 3caf2db..7287683 100644
--- a/node_modules/@fal-ai/server-proxy/src/index.js
+++ b/node_modules/@fal-ai/server-proxy/src/index.js
@@ -89,7 +89,7 @@ async function handleRequest(behavior) {
behavior.sendHeader(key, value);
}
});
- return behavior.sendResponse(res);
+ return behavior.sendResponse(new Response(res.body, res));
}
function fromHeaders(headers) {
// TODO once Header.entries() is available, use that instead
thanks to this comment: https://stackoverflow.com/questions/73753704/sveltekit-typeerror-immutable
Thanks for the report and fix suggestion @spullara I opened #109 to address it.
I also released 1.1.1-alpha.0
of the @fal-ai/server-proxy
. Would you be able to give it a try to confirm it works. That would help as I don't have a Svelte app here with a reproducer ready to go.
that version appears to work for me. thanks!
@spullara version 1.1.1
is out
It fails when proxying with this error:
for example, just doing this in hooks causes this