#Unhandled Runtime Error

4 messages · Page 1 of 1 (latest)

flat magnet
#

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.

tender matrix
#

Hey @flat magnet! 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?

flat magnet
#

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.

tender matrix
#

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.