You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently tried moving my blog over to the deno runtime via this adapter. Almost everything is working okay. The exception being all of my sites Astro "endpoints"..
I use these to generate RSS (XML) and JSON feed files for my blog post content.
What goes wrong
When running the site under deno, I see a 500 error and receive the following stack trace in the console:
22:17:23 [ERROR] TypeError: Cannot change headers: headers are immutable
at Headers.set (ext:deno_fetch/20_headers.js:425:13)
at setOriginHeader (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:91871:19)
at Function.create (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:91957:5)
at eventLoopTick (ext:core/01_core.js:175:7)
at async _App.render (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:92711:29)
at async Server.handler (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:92895:24)
at async Server.#respond (https://deno.land/std@0.177.0/http/server.ts:299:18)
Hello all!
I've recently tried moving my blog over to the deno runtime via this adapter.
Almost everything is working okay. The exception being all of my sites Astro "endpoints"..
I use these to generate RSS (XML) and JSON feed files for my blog post content.
What goes wrong
When running the site under deno, I see a 500 error and receive the following stack trace in the console:
22:17:23 [ERROR] TypeError: Cannot change headers: headers are immutable at Headers.set (ext:deno_fetch/20_headers.js:425:13) at setOriginHeader (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:91871:19) at Function.create (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:91957:5) at eventLoopTick (ext:core/01_core.js:175:7) at async _App.render (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:92711:29) at async Server.handler (file:///home/mykal/projects/mykalmachon/mykal.codes/website/dist/server/entry.mjs:92895:24) at async Server.#respond (https://deno.land/std@0.177.0/http/server.ts:299:18)
Dependencies
Here are my dependencies
The text was updated successfully, but these errors were encountered: