Skip to content
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

Error: Incorrect number of sealed components #183

Closed
louisgv opened this issue Jul 31, 2020 · 4 comments
Closed

Error: Incorrect number of sealed components #183

louisgv opened this issue Jul 31, 2020 · 4 comments

Comments

@louisgv
Copy link

louisgv commented Jul 31, 2020

I'm getting this error suddenly, very weird. This is a 500 so it seems my next API route is broken, but no error/broken build. Next still saying compile successful. I have found that using incognito bypass the problem.

@louisgv
Copy link
Author

louisgv commented Jul 31, 2020

Seems to stem from iron core itself https://npmdoc.github.io/node-npmdoc-iron/build/apidoc.html

@louisgv
Copy link
Author

louisgv commented Jul 31, 2020

So I found the cause of the error. Another app apparently created cookie under the same name, so iron could not parse it. Feel free to close!

@vvo
Copy link
Owner

vvo commented Jul 31, 2020

Indeed this is why nowadays we recommend setting a very specific cookieName and enforcing its usage. When you have two cookies with the exact same name and the url of the website is the same then you can have issues. This happens a lot in development, https://localhost:3000 can be many apps so be sure to use a cookieName that's always different for each app.

@dalalRohit
Copy link

dalalRohit commented Aug 19, 2021

In my case, it is not because of clashing cookie names. The error is thrown when it is tampered/altered from DevTools cookie store

#380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants