Nicoo
Nicoo4d ago

Issue with Convex functions Upon start

Upon each start for the last 2 hours on my project i keep getting Convex failed to start errors and when asking Chef to fix he is unable cause all Type Script check functions fail and a lot of times we fail to push to convex, please need help and andice as I lost time, money, and the ability to preview my project completely.
4 Replies
Convex Bot
Convex Bot4d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Nicoo
NicooOP4d ago
\
No description
Nicoo
NicooOP4d ago
this is error code that chef cant seem to solve due to typescript check failures at QueriesObserver.getLocalResults (node_modules/.vite/deps/chunk-R5YPRMWL.js?v=dffb0fac:3221:23) at getCurrentValue (node_modules/.vite/deps/chunk-R5YPRMWL.js?v=dffb0fac:3352:25) at node_modules/.vite/deps/chunk-R5YPRMWL.js?v=dffb0fac:3311:23 at basicStateReducer (node_modules/.vite/deps/react-dom_client.js?v=485011f8:4406:47) at updateReducerImpl (node_modules/.vite/deps/react-dom_client.js?v=485011f8:4494:73) at updateReducer (node_modules/.vite/deps/react-dom_client.js?v=485011f8:4439:16) at Object.useState (node_modules/.vite/deps/react-dom_client.js?v=485011f8:16790:20) Preview Error We encountered an error while running the preview. Would you like Chef to analyze and help resolve this issue? Error: Uncaught Error: [CONVEX Q(serviceHistory:listServiceCallsByStatus)] [Request ID: 99bde5e317f1bdc9] Server Error ArgumentValidationError: Value does not match validator. Path: .status Value: "in_progress" Validator: v.union(v.literal("pending"), v.literal("completed"), v.literal("needs_return")) Called by client I had saved backups of when my work was going well but when i restore those backups the code stays the same so i contunie to have issues
erquhart
erquhart3d ago
Try pasting this in as a prompt:
Sounds like listServiceCallsByStatus query is being called with the status arg set to in_progress, but the validator only accepts pending, completed, and needs_return. If in_progress is the right status, update the validator to include it. Otherwise you'll need to send the correct status instead.

Did you find this page helpful?