ericE
Convex Community3y ago
7 replies
eric

ArgumentValidationError only in prod deployment?

I have a relatively simple action that pulls some data and returns it (and on the client side it passes this array to a mutation). I added a try/catch so that if the error is a 401, I just return a string rather than an array of data. On the client side, I have an if response === “private” return; so it breaks early without trying to pass data onto the next mutation.

This works great locally but the moment I push it to prod, I get all of these ArgumentValidationErrors which functionally takes down the site. I’d love to be able to just test things out and figure out what’s really causing this but it’s hard to justify doing that when it takes down the site for every user on it .

Any tips or advice here? Not quite sure why this is happening or if there’s a way to recreate this locally!
Was this page helpful?