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
If you have a page that does a throw error(403) for example, and you navigate to that page via an <a> tag on the site (i.e. using the client-side router), you'll incorrectly always get a 500 error instead.
The text was updated successfully, but these errors were encountered:
aradalvand
changed the title
Page that throws 403 truns into 500 when client-side router is used
Page that throws 4xx truns into 500 when client-side router is used
Aug 20, 2022
aradalvand
changed the title
Page that throws 4xx truns into 500 when client-side router is used
Page throwing 4xx error turns into 500 when client-side-routed
Aug 20, 2022
Describe the bug
If you have a page that does a
throw error(403)
for example, and you navigate to that page via an<a>
tag on the site (i.e. using the client-side router), you'll incorrectly always get a 500 error instead.Dead-simple repro: https://github.com/aradalvand/sveltekit-error-problem
Reproduction
git clone https://github.com/aradalvand/sveltekit-error-problem
npm i && npm run dev
/foo
, you'll get a 403 error, as expected.Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: