Error for trying to make not allowed stuff in mutations and queries

As discussed here: https://discord.com/channels/1019350475847499849/1224663426538672128 It would be nice to have an nice helpful error if you do unallowed stuff in the mutations and queries like network request.
2 Replies
sshader
sshader•11mo ago
I believe we generally do this -- I tested this out with a Custom test query
export default query(async (ctx) => {
await fetch("https://google.com")
return null
})
export default query(async (ctx) => {
await fetch("https://google.com")
return null
})
For the particular clerk issue, by uh... sticking some console.log in the clerk library in my node modules, it looks like clerk catches the error and wraps it in a new Error with an errors property but no message, which I think is why Convex isn't showing the message (which we can probably change)
sshader
sshader•11mo ago
No description

Did you find this page helpful?