Running into this error (using Drizzle ORM) ``` Error: D1_ERROR at D1Database._send (index.js:28

Running into this error (using Drizzle ORM)
Error: D1_ERROR
    at D1Database._send (index.js:2874:13)
    at async D1PreparedStatement.raw (index.js:2945:7)
    at async PreparedQuery2.all (index.js:2367:18)
    at async index.js:2761:18
    at async Object.handle [as fetch] (index.js:21:30) {
  stack: Error: D1_ERROR
    at D1Database._send (index.js:โ€ฆt async Object.handle [as fetch] (index.js:21:30),
  message: D1_ERROR,
  cause: Error: Error: too many arguments on function json_array
    at D1Database._send (index.js:2875:16)
โ€ฆ
}

Works fine when running locally, but gives this error when running remotely or deployed.

Leads me to believe D1 has a lower json_array() argument limit than standard SQLite?
From my testing it seams to only work with up to 8 arguments.

Just a theory. Don't really know what I'm doing ๐Ÿ˜…
Was this page helpful?