NextJS 15 Dynamic API Async Errors
Hello,
I'm currently receiving this error when trying to use NextJS15 with Convex and Convex Auth
[Error: Route "/signin" used headers().get('Host'). headers() should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
[Error: Route "/signin" used cookies().get('__convexAuthJWT'). cookies() should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]
5 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
This is a known issue, see https://github.com/get-convex/convex-auth/issues/113 for updates. I'm hoping to get this change in the next few days, but for now this is only going to work with Next.js 14.
GitHub
NextJS 15 support · Issue #113 · get-convex/convex-auth
Just tried to update to Next15, the Async Request APIs breaking changes did break convexAuth specifically cookie and token requesting area. [Error: Route "/" used `headers().get('Host...
Thank you @ballingt apologies for the double post!
Sorry for the delay, coming soon!
np, fantastic work so far regardless!