-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[URIError]: URI malformed using middleware #43030
Comments
Also encountering this, here is a repository reproducing the issue https://github.com/smonn/repro-nextjs-middleware-bug |
@balazsorban44 this problem still exists on next, if we have a middleware, and any cookie contains e.g. |
We are also encountering this issue, we get a lot of reports of this happening through Sentry. |
Me and my team also had a problem regarding the cookie value decoding. According to the
Taking above into consideration is it ok to automatically perform cookie value decoding in
|
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next start or next dev
Describe the Bug
If a cookie with an invalid character* is set in a Next project using middleware, the app crashes.
*an character that leads to an error in decodeURIComponent e.g. ö --> %6F
Expected Behavior
Error should be handled by parseCookieString and thereby prevent the app from crashing.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
No link
To Reproduce
yarn create next-app --typescript
yarn dev
The text was updated successfully, but these errors were encountered: