-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bug: 500 error on getKindeServerSession() in 2.3.7 #204
Comments
I'm having the same issue..after upgrade (using Nextjs 14) |
Thanks for raising, will get this checked out. |
Looking into this |
Thanks so much team, sorry about that bug! It should be fixed as a part of 2.3.8 #205 |
The bug is still there, and I'm using v2.3.8 with nexts14. When it comes to desktop browsers, it's a bit acceptable, but as for mobile browsers like Chrome on iPhone, it will cause a breakdown of the page. |
Same issue here. I tried several versions. Now i went down to version 2.3.6. It works but i get the "401 Unauthorized" with loggedOut users which i guess was intended in this version. |
Same issue as @QingjiaTsang here. Any solution? |
Am I right that this only occurs when there is no active session? |
@DanielRivers well i'm using it on the client "use client";
|
Hi, |
I have the same problem, any news? |
same problems.. |
The problem still appears using the vanilla setup for nextjs in a fresh unmodified project... https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/ kinde setup: Email and Code Environment: localhost:3000 Error: dependencies: Any solutions or any working recommended setups to use kinde without errors from start? @DanielRivers Yes, it happens only when there is no active session yet. |
Next 15.1.4 I'm using the isAuthenticated in a navbar to determine which menu items i want to show. If there is no logged in user i get the error mentioned above. After logging in, everything works fine. No previous login or after logout, the error pops up I found this post in the Kinde community: https://community.kinde.com/nextjs-app-router-500-error-constant-setup-lJ0t6n4blKfx But the error keeps on coming |
Prerequisites
Describe the issue
When trying to get user or isAuthenticated from getKindeServerSession() in client code I'm getting a 500 error on /api/auth/setup. There is nothing in the logs, even after setting the debug env variable. Downgrading to 2.3.6 fixes it. The 500 error means that I'm not able to see if a user is even authenticated from the browser.
This client example here will trigger the issue: https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/#protect-routes-with-kinde-auth-data
Library URL
https://github.com/kinde-oss/kinde-auth-nextjs
Library version
2.3.7
Operating system(s)
macOS
Operating system version(s)
macOS Sonoma 14.5
Further environment details
Next v13.4.3
Reproducible test case URL
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: