Hi, I've suddenly started getting these errors whe...
# talk-kratos
f
Hi, I've suddenly started getting these errors when requesing recovery, just after submitting an e-mail via a browser-based flow:
Copy code
{
  "id": "ce14c59f-573a-4674-bfdc-812834118d88",
  "error": {
    "code": 500,
    "status": "Internal Server Error",
    "message": "ERROR: new row for relation \"identity_recovery_tokens\" violates check constraint \"identity_recovery_tokens_token_type_ck\" (SQLSTATE 23514)"
  },
  "created_at": "2023-02-16T11:53:40.658426Z",
  "updated_at": "2023-02-16T11:53:40.658426Z"
}
Haven't seen these ever, any idea what can be the cause? I'm using Kratos v0.10.1 Here's an error from the postgresd container:
Copy code
postgresd_1                   | DETAIL:  Failing row contains (13f962b8-a245-45ad-b2b0-15a55d2af313, 8f6a9b69e9dbe671389e4d7c3688802d731ff7af50637be9448714573c4a2600, f, null, 0834179a-6e08-407a-bd5f-30afa10500fd, a8d777b8-114c-42aa-a04f-184aed1bf1ad, 2023-02-16 11:58:36.57822, 2023-02-16 11:58:36.57822, 2023-02-16 13:58:36.578145, 2023-02-16 11:58:36.578145, 22e7b366-885a-4edb-ba0d-091a370a0910, 3d98a4c3-d068-4244-a9d8-aa62c20349fc, 0).
postgresd_1                   | STATEMENT:  INSERT INTO "identity_recovery_tokens" ("created_at", "expires_at", "id", "identity_id", "identity_recovery_address_id", "issued_at", "nid", "selfservice_recovery_flow_id", "token", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)