https://www.ory.sh/ logo
#talk-hydra
Title
# talk-hydra
b

best-dog-16044

10/28/2021, 1:36 PM
Hi I see this error from time to time on oauth2/token. Currently using v1.10.5 version
ERROR: could not serialize access due to concurrent update (SQLSTATE 40001): Unable to serialize access due to a concurrent update in another session
I am assuming its just simultaneous requests to /oauth2/token but would appreciate some clarification? Thanks in advance
l

limited-tent-11422

10/28/2021, 2:07 PM
This happens when you have concurrent requests to refresh the token. https://github.com/ory/hydra/blob/6ea0bf8f4dc990667c6911c92a1ad644733745be/persistence/sql/persister_oauth2.go#L215 error is handled here.
b

best-dog-16044

10/29/2021, 1:45 PM
Thanks is this from your experiences? Out of interest
l

limited-tent-11422

10/29/2021, 4:01 PM
Yeah. We had mobile apps having a race
14 Views