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
Using the sveltekit fetch in a +page.server.ts load function will cause an Internal Error whenever a cookie is set in the hooks.server.ts handle function.
Reproduction
Create an api server and add public endpoints to it
Setup a Sveltekit application with a vite proxy to point a specific route to the api server
Add a +page.server.ts file and use event.fetch to attempt to access the api via the proxy
Add a hooks.server.ts file and add a cookie to the event
Run both the api and sveltekit applications
Notice when the page is hit it will return an Internal Error
Describe the bug
Using the sveltekit fetch in a +page.server.ts load function will cause an Internal Error whenever a cookie is set in the hooks.server.ts handle function.
Reproduction
Here is a working reproduction: https://github.com/JLewinski/Reproduction/tree/master
Logs
System Info
Severity
annoyance
Additional Information
At the very least it would be good to have a better error message, so developers understand what is going on.
The text was updated successfully, but these errors were encountered: