hi guys, anyone using prisma with planetscale? im ...
# prisma-client
j
hi guys, anyone using prisma with planetscale? im getting some very cryptic error, wondering if anyone have similar issues with planetscale
Copy code
await this.prisma.invoiceItems.create(
  Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Server(ServerError { code: 3140, message: "target: unigate.-.primary: vttablet: (errno 3140) (sqlstate 22032) (CallerID: unsecure_grpc_client): Sql: \"insert into InvoiceItems(id, invoice_id, item, paid, accepted_coins, createdAt, currency, updatedAt, amount, paid_amount) values (:v1, :v2, :v3, :v4, :v5, :v6, :v7, :v8, :v9, :v10)\", BindVars: {}", state: "22032" })) })
m
sql state of 22032 is generally an invalid type or invalid JSON text.
j
thank you, but how do i know which field is it if i have multiple column with JSON values?
m
nor do i, you might want to jump the statement as well as the values to see what it was.
👍 1