-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cookie with name 'fail-type' was not found at path '...' #9130
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
Comments
I am also seeing these warnings in my projet. It rapidly appeared when I implemented auth in a near blank project, so should be easily reproducible. |
It also happens to me when using the |
This was introduced because folks were inadvertently setting cookies on kit/packages/kit/src/runtime/server/cookie.js Lines 27 to 28 in 46eec82
I think it's reasonable to require But that would be a breaking change, so how about this:
|
As stated in the comment, this emulates the native browser behavior, so it's as if the path isn't set from a browser perspective, only that it also handles the |
Hi @dummdidumm: I understand where you're coming from. I still disagree. Sure browsers and the underlying I guess I'd come around if someone could show me a case where requiring path to be set prevents doing something useful. I can't think of any, but who knows? In the meantime I'll agree to disagree. |
Had this same issue trying to log out on a remotely connected device. It would not set the cookie preventing the user from logging out. |
Ok, looking at the code again this makes sense. We're populating I think it's worth keeping the error, just without the false positives. Requiring |
closes #9130 --------- Co-authored-by: Simon H <[email protected]>
Describe the bug
I keep seeing this error when I run the tests:
It doesn't happen every time, but it happens often. The
fail-type
cookie is set here...kit/packages/kit/test/apps/basics/src/routes/errors/error-html/make-root-fail/+server.js
Lines 4 to 7 in 9c626a9
...so that it can be read here:
kit/packages/kit/test/apps/basics/src/routes/+layout.server.js
Lines 15 to 18 in 9c626a9
As you can see, the
path
is set, so it's unclear why this message appears. But it feels indicative of a real bug, just one I haven't wrapped my head round.Reproduction
Run
pnpm test
enough times, you'll see it.Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: