makrdevM
Convex Community10mo ago
36 replies
makrdev

Leftover state detected. This typically happens if there are dangling promises...

Uncaught Error: Leftover state detected. This typically happens if there are dangling promises from a previous request. Did you forget to await your promises?

Uncaught Error: Cannot invoke syscall during module imports at handler (../../../../convex/collections/storage/documents/actions.ts:154:27)

I got this error message when I call an action(node) multiple times. It works if we call it once tho... I don't know how to debug this. Anyone can help?

Running actions with useAction and Promise.all(...) When I call sequentially it works.
Was this page helpful?