call more than 1 mutation/query in an action when using "use node"

how do I do ^?
5 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!
erquhart
erquhart4d ago
Works the same as Convex runtime generally, what are you seeing?
Barrel Of Lube
Barrel Of LubeOP4d ago
5/22/2025, 1:47:21 PM [CONVEX A(langchain/agent:chat)] Uncaught Error: Cannot invoke syscall during module imports
at handler (../../convex/langchain/agent.ts:29:14)
5/22/2025, 1:47:21 PM [CONVEX A(langchain/agent:chat)] Uncaught Error: Cannot invoke syscall during module imports
at handler (../../convex/langchain/agent.ts:29:14)
erquhart
erquhart4d ago
That's not due to invoking multiple functions in an action, that's allowed. Tom mentioned something here that might help: https://discord.com/channels/1019350475847499849/1153869769460682954/1153875819484164137 Whatever it is, it's executing on import, not during the actual function call
Barrel Of Lube
Barrel Of LubeOP4d ago
its being called by langchain but nvm i just isolated the function

Did you find this page helpful?