Replies: 1 comment 1 reply
-
Hi @aditi-mm, you'll need to provide more info for us to figure out what's going on here. That 500 from your login endpoint should have informative errors in server-side logs. Could you provide those? (Make sure you aren't try/catching without logging.) In addition:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an issue where the api/login and api/logout endpoints sometimes throw errors on my Vercel deployment. Even when I see an error on the console, the user is still able to login and access the home page of the application, but at times the home page does not fully load because I rely on tokens to pull from my api. This error happens about 1 in every 10 times I try and log in and out of my application.
My api/login route and api/logout routes are exactly as specified in the documentation. I make sure to return a response in every case. Since the error does not happen every time, perhaps there is an issue with the API response not being awaited?
I saw a similar issue here but wasn't sure if I was seeing the same issue or there is something else I'm missing.
Attached is a screenshot of the errors I see in the client's console.
Beta Was this translation helpful? Give feedback.
All reactions