Skip to content

Tolgee throws 500 on coinstraint violations #2835

Open
@JanCizmar

Description

@JanCizmar

Describe the bug
When user executes API endpoints too fast, it can lead to constraint violation errors from the database level. We should check all the past errors and retry such operation before the transaction is started.

Maybe some kind of @RetriableTransaction annotation can be invented for this, so we don't have to handle it manually.

For Tolgee team

There is such issue logged in Sentry.

https://tolgee.sentry.io/issues/6215707742/?alert_rule_id=933933&alert_timestamp=1736758412402&alert_type=email&notification_uuid=6ec8f19a-c48a-47de-b570-7a43cdc1fd30&project=1853051&referrer=digest_email

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions