charlaylay
charlaylay2y ago

Unhandled Runtime Error

Getting Unhandled Runtime Error when trying to sign into the application via a convex action using clerk auth. Only occurs locally and on a single machine.
No description
3 Replies
Michal Srb
Michal Srb2y ago
Hey @charlaylay! This is an error coming from your action in createSessions . Are you using useConvexAuth or one of our helper Auth components to gate the call to the action?
charlaylay
charlaylayOP2y ago
Hi Michal! I'm using <ConvexProviderWithClerk>. Previously I've tried using useConvexAuthto solve the issue but then ran into another error where the app is trying to access isLoading and isAuthenticated before there is a value.
Michal Srb
Michal Srb2y ago
Without useConvexAuth or our Authenticated helper it’s possible that the action runs before the client is authenticated. Do you mind sharing your client code? Feel free to DM me here. Hey @charlaylay , we have released Convex 0.12.4 which has fixes for auth which might help with your situation. Give it a try and let us know how it goes!

Did you find this page helpful?