Skip to content
← Back to activity

Public problem

Zapier CLI Invalid cursor error when using z.cursor in resources instead of triggers

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Calling z.cursor.get or z.cursor.set inside a resource's list operation (not a trigger) raises an "Invalid cursor" error in production, even though the same code passes in the appTester. Cursor-based pagination works in triggers but fails in resources.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was a Zapier platform bug: resources were not being issued valid cursors. Fixed in Zapier CLI 10.0.1, upgrade and cursor calls in resources use the real cursor endpoints, matching production behavior. (Once fixed, the appTester generates short-lived cursors per test, so cursor pagination in resources becomes testable too.)

Source: https://github.com/zapier/zapier-platform/issues/24