JSON returned in fetch Response throws "unsupported Convex Type"
I'm returning Clerk Tickets from one of my endpoints and it's giving me an "Unsupported Convex Type" error
How can I figure out the problem
(it was working yesterday)
3 Replies
This is being returned from a Convex endpoint? Query, mutation or action? I wish our error message were better. Could you check the type of this object, maybe it's something other than a simple object? Could try logging obj.constructor
Or is this an issue when you save this to a database? Could you share more of the stack trace?
What is a Clerk Ticket, I don't see it in the clerk.io docs — is this something else?
Ah found the ticket strategy in Clerk
I"m returning it from an action
We investigated in DMs, this is a real issue with returning the json() from a Response from a fetch() directly in a Convex action. We'll update with a fix.