500 error on POST /api/v1/filters
Pleroma 2.1.2
Upon trying to add a new filter (POST /api/v1/filters
):
I get this error:
Sep 30 00:05:43 gleasonator mix[3388297]: 00:05:43.986 request_id=FjlgaGOLOsIaYGIAh0AB [error] Internal server error: %Ecto.ConstraintError{constraint: "filters_pkey", message: "constraint error when attempting to insert struct:\n\n * filters_pkey (unique_constraint)\n\nIf you would like to stop this constraint violation from raising an\nexception and instead add it as an error to your changeset, please\ncall
unique_constraint/3on your changeset with the constraint\n
:nameas an option.\n\nThe changeset has not defined any constraint.\n", type: :unique}
After trying to submit a second time, it does work.
I think this may be a problem with the IDs. I vaguely remember looking at the code for filters, and it uses some weird logic instead of auto-incrementing I think?