Replies: 1 comment 3 replies
-
|
Do you have the newest Stack Auth package version? The older versions don't support Next 15 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have just upgraded my NextJS app latest version. But this is nor working on my project. throws the following errors;
Error: Route "/" usedcookies().get('stack-refresh').cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apisat createCookiesAccessError (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11929:12)
at logDedupedError (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11468:25)
at syncIODev (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11923:5)
at Promise.get (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11824:17)
at getCookie (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:16852:198)
at (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17151:218)
at getTokenStore (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17178:294)
at StackServerAppImpl.getUser (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17586:28)
at middleware (C:\projects\kanban.next\server\edge\chunks[root of the server]__a6a15d..js:50:145)
at (C:\projects\kanban.next\server\edge\chunks_6f24f8._.js:18417:26) {
}
Error: Route "/" used
cookies().get('stack-access').cookies()should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apisat createCookiesAccessError (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11929:12)
at logDedupedError (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11468:25)
at syncIODev (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11923:5)
at Promise.get (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:11824:17)
at getCookie (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:16852:198)
at (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17152:217)
at getTokenStore (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17178:294)
at StackServerAppImpl.getUser (C:\projects\kanban.next\server\edge\chunks_6f24f8..js:17586:28)
at middleware (C:\projects\kanban.next\server\edge\chunks[root of the server]__a6a15d..js:50:145)
at (C:\projects\kanban.next\server\edge\chunks_6f24f8._.js:18417:26) {
}
⨯ Error: Failed to send request to https://app.stack-auth.com/api/v1/current-user: 400 {"error":"You attempted to access /api on the Stack Auth dashboard URL, instead of the API URL. Did you mean to access https://api.stack-auth.com/api instead?\n\nFor more guidance, please join our Discord server for assistance: https://discord.stack-auth.com"}
at StackServerInterface.sendClientRequestInner (.next\server\edge\chunks_6f24f8..js:14941:19)
at async Object.retry (.next\server\edge\chunks_6f24f8..js:10745:21)
at async Object.orThrowAsync (.next\server\edge\chunks_6f24f8..js:10674:31)
at async StackServerInterface.sendClientRequest (.next\server\edge\chunks_6f24f8..js:14859:16)
at async StackServerInterface.getClientUserByToken (.next\server\edge\chunks_6f24f8..js:15227:26)
at async (.next\server\edge\chunks_6f24f8..js:17229:22)
at async AsyncCache.fetcher (.next\server\edge\chunks_6f24f8..js:17209:245)
at async AsyncValueCache (.next\server\edge\chunks_6f24f8..js:16355:51)
at async Object.promiseToResult [as fromPromise] (.next\server\edge\chunks_6f24f8..js:10703:23)
○ Compiling /_error ...
✓ Compiled /_error in 864ms
GET /boards/2 404 in 9ms
○ Compiling /_not-found/page ...
GET /favicon.ico 200 in 521ms
✓ Compiled /_not-found/page in 5.2s
[Error: Route "/_not-found" used
cookies().get('stack-refresh').cookies()should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis]⨯ [Error: Failed to send request to https://app.stack-auth.com/api/v1/current-user: 400 {"error":"You attempted to access /api on the Stack Auth dashboard URL, instead of the API URL. Did you mean to access https://api.stack-auth.com/api instead?\n\nFor more guidance, please join our Discord server for assistance: https://discord.stack-auth.com"}] {
digest: '2190428121'
}
`
Please help...
Beta Was this translation helpful? Give feedback.
All reactions