Hi I see this error from time to time on oauth2/to...
# talk-hydra
b
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
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
Thanks is this from your experiences? Out of interest
l
Yeah. We had mobile apps having a race