Stripe invalid input syntax for type uuid

Got an error when try to cancel subscription

error: Failed query: select "id", "plan", "reference_id", "stripe_customer_id", "stripe_subscription_id", "status", "period_start", "period_end", "trial_start", "trial_end", "cancel_at_period_end", "seats" from "subscription" "subscription" where "subscription"."id" = $1 limit $2
params: sub_1SflmK4Twqr22Qlf75q14nrC,1
  query: "select \"id\", \"plan\", \"reference_id\", \"stripe_customer_id\", \"stripe_subscription_id\", \"status\", \"period_start\", \"period_end\", \"trial_start\", \"trial_end\", \"cancel_at_period_end\", \"seats\" from \"subscription\" \"subscription\" where \"subscription\".\"id\" = $1 limit $2",
 params: [
  "sub_1SflmK4Twqr22Qlf75q14nrC", 1
],



PostgresError: invalid input syntax for type uuid: "sub_1SflmK4Twqr22Qlf75q14nrC"
errno: "22P02",
severity: "ERROR",
where: "unnamed portal parameter $1 = '...'",
file: "uuid.c",
routine: "string_to_uuid",
code: "ERR_POSTGRES_SERVER_ERROR"

at wrapPostgresError (internal:sql/postgres:165:9)
at onRejectPostgresQuery (internal:sql/postgres:194:32)


"@better-auth/passkey": "1.4.7",
"@better-auth/stripe": "^1.4.7",
"stripe": "20.1.0",
Was this page helpful?