Error: D1_ERROR: too many SQL variables at offset 460: SQLITE_ERROR
Hey there! Getting the following error
Error: D1_ERROR: too many SQL variables at offset 460: SQLITE_ERROR
at D1DatabaseSessionAlwaysPrimary._sendOrThrow (cloudflare-internal:d1-api:129:19)
at async D1PreparedStatement.run (cloudflare-internal:d1-api:308:29)
... 4 lines matching cause stack trace ...
at async drainBody (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10) {
[cause]: Error: too many SQL variables at offset 460: SQLITE_ERROR
at D1DatabaseSessionAlwaysPrimary._sendOrThrow (cloudflare-internal:d1-api:130:24)
at async D1PreparedStatement.run (cloudflare-internal:d1-api:308:29)
at async Object.handler (file:///Users/haris/code/posthog-cohorts-to-cio-segments/src/schedules/fetchCohorts.ts:282:6)
at async Promise.all (index 0)
at async Object.scheduled (file:///Users/haris/code/posthog-cohorts-to-cio-segments/src/index.ts:11:3)
at async scheduled (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-scheduled.ts:8:3)
at async drainBody (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
}Error: D1_ERROR: too many SQL variables at offset 460: SQLITE_ERROR
at D1DatabaseSessionAlwaysPrimary._sendOrThrow (cloudflare-internal:d1-api:129:19)
at async D1PreparedStatement.run (cloudflare-internal:d1-api:308:29)
... 4 lines matching cause stack trace ...
at async drainBody (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10) {
[cause]: Error: too many SQL variables at offset 460: SQLITE_ERROR
at D1DatabaseSessionAlwaysPrimary._sendOrThrow (cloudflare-internal:d1-api:130:24)
at async D1PreparedStatement.run (cloudflare-internal:d1-api:308:29)
at async Object.handler (file:///Users/haris/code/posthog-cohorts-to-cio-segments/src/schedules/fetchCohorts.ts:282:6)
at async Promise.all (index 0)
at async Object.scheduled (file:///Users/haris/code/posthog-cohorts-to-cio-segments/src/index.ts:11:3)
at async scheduled (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-scheduled.ts:8:3)
at async drainBody (file:///Users/haris/Library/pnpm/global/5/.pnpm/wrangler@3.86.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
}