-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
I was trying to relink Spotify to my ListenBrainz account and saw the following error:
(psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "spotify_auth_pkey" DETAIL: Key (user_id)=(<user_id>) already exists.
[SQL: INSERT INTO spotify_auth (user_id, user_token, refresh_token, token_expires, record_listens, permission) VALUES (%(user_id)s, %(user_token)s, %(refresh_token)s, %(token_expires)s, %(record_listens)s, %(permission)s) ]
Sentry link: https://sentry.metabrainz.org/share/issue/49e1a3a354574e1e987b541e74d65d9f/
- is duplicated by
-
LB-962 IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "user_id_service...
- Closed
-
LB-1047 Key (user_id, service)=(<uid>, spotify) already exists
- Closed
-
LB-1074 Reconnecting Spotify violates uniqueness constraint
- Closed
-
LB-1075 Reconnecting Spotify account: psycopg2 Unique ID constraint violation for user_id_service_ndx_listens_importer
- Closed