-
Notifications
You must be signed in to change notification settings - Fork 414
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Running npx convex function-spec
on an environment which has the following function crashes:
export const query12 = query({
args: {
i: v.literal(BigInt(1)),
},
returns: {
i: v.literal(BigInt(1)),
},
handler: (ctx, args) => {
return args;
},
});
Results in the following crash:
Error: [CONVEX Q(_system/cli/modules:apiSpec)] [Request ID: 4720b13eabb84ec5] Server Error
Uncaught Error: Field name $integer starts with a '$', which is reserved.
at map [as map] (<anonymous>)
Called by client
at OptimisticQueryResults.queryResult (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:140450:13)
at BaseConvexClient.localQueryResultByToken (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:141911:40)
at BaseConvexClient.webSocketConstructor (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:151343:112)
at C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:141619:7
at BaseConvexClient.handleTransition (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:141816:7)
at BaseConvexClient.notifyOnQueryResultChanges (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:141794:10)
at WebSocketManager.onMessage (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:141696:20)
at ws.onmessage (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:140816:29)
at callListener (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:85729:18)
at _WebSocket.onMessage (C:\Users\dicke\DickerSystems\convex-rs\temptemp\my_app\node_modules\convex\dist\cli.bundle.cjs:85664:13)
This was caught during testing of a dart client I'm working on.
Discovering a bug in convex itself was very unexpected.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working