Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Error when using cookies or headers #17

Open
STNeto1 opened this issue May 5, 2023 · 2 comments
Open

Error when using cookies or headers #17

STNeto1 opened this issue May 5, 2023 · 2 comments

Comments

@STNeto1
Copy link

STNeto1 commented May 5, 2023

Using both cookies or headers from next/headers throws an error around requestAsyncStorage.

Invariant: Method expects to have requestAsyncStorage, none available

[email protected]
[email protected]
[email protected]

Repo with issue: https://github.com/STNeto1/zact-async-context/blob/main/src/app/action.ts

@STNeto1
Copy link
Author

STNeto1 commented May 5, 2023

It's a next issue,

vercel/next.js#49235

@Escapado
Copy link

Escapado commented May 9, 2023

For visibility purposes: With the new 13.4.2-canary.2 there were some changes as mentioned in the issue you linked - accessing headers and cookies on its own work now. I guess a lot of people here will try to use this with next-auth which isn't fixed and a separate issue exists here.

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

No branches or pull requests

2 participants