Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-759

Relinking Spotify throws `duplicate key` error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal 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/

            kartik1712 amCap1712
            shivam-kapila Shivam Kapila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package