streamrip icon indicating copy to clipboard operation
streamrip copied to clipboard

[BUG] qobuz: `null` credential.parameters for seemingly valid token

Open ink-splatters opened this issue 3 weeks ago • 0 comments

Describe the bug

What

Qobuz is set up using auth token which recently worked.

Now the app throws IneligibleError due to missing fields in server response, but it's not obvious if the token was invalidated or not.

I kindly request Maintainer(s) opinion on this / if the issue is worth further debugging or I simply need a new token and there is no issue with the tool.

Debug info

Click here for config details
[qobuz]
...
use_auth_token = true
email_or_userid = "0123456"
password_or_token = "TOKEN"
app_id = "012345678"
secrets = ["XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"]
Click here for the exception details and response payload
❯ rip search qobuz album <album>
...
│ /Users/pa/.local/share/uv/tools/streamrip/lib/python3.13/site-packages/streamrip/client/qobuz.py │
│ :211 in login                                                                                    │
│                                                                                                  │
│   208 │   │   │   f.write(json.dumps(dict(resp),indent=True))                                    │
│   209 │   │                                                                                      │
│   210 │   │   if not resp["user"]["credential"]["parameters"]:                                   │
│ ❱ 211 │   │   │   raise IneligibleError("Free accounts are not eligible to download tracks.")    │
│   212 │   │                                                                                      │
│   213 │   │   uat = resp["user_auth_token"]                                                      │
│   214 │   │   self.session.headers.update({"X-User-Auth-Token": uat})

Response payload:

{
  "user": {
    "id": 8119291,
    "publicId": "qobuz:user:XXXXXXXXXXXXX",
    "email": "[email protected]",
    "login": "[email protected]",
    "firstname": null,
    "lastname": null,
    "display_name": "XXXXXXXXXXXXX",
    "country_code": "IT",
    "language_code": "it",
    "zone": "IT",
    "store": "IT-it",
    "country": "IT",
    "avatar": "https://www.gravatar.com/avatar/d7d134e562d44f1ff3b82f595184c380?s=50&d=mm",
    "genre": "other",
    "age": 25,
    "birthdate": "2000-01-01",
    "creation_date": "2025-10-26",
    "zipcode": null,
    "subscription": null,
    "credential": {
      "id": null,
      "label": null,
      "description": "Membro Qobuz",
      "parameters": null
    },
    "last_update": {
      "favorite": 1761480366,
      "favorite_album": 1761480366,
      "favorite_artist": 1761480366,
      "favorite_track": 1761480366,
      "favorite_label": 1761480366,
      "favorite_award": 1761480366,
      "playlist": 1761480366,
      "purchase": 1761480366
    },
    "store_features": {
      "download": true,
      "streaming": true,
      "editorial": true,
      "club": true,
      "wallet": true,
      "weeklyq": true,
      "autoplay": true,
      "inapp_purchase_subscripton": true,
      "opt_in": true,
      "pre_register_opt_in": true,
      "pre_register_zipcode": false,
      "music_import": true,
      "radio": true,
      "stream_purchase": true
    },
    "player_settings": {
      "sonos_audio_format": 7
    },
    "externals": {}
  },
  "user_auth_token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

Command Used

rip search qobuz album <album>

Debug Traceback

Included in Description

Config File

Related portion is included in description

Operating System

macOS

streamrip version

2.1.0

Screenshots and recordings

No response

Additional context

No response

ink-splatters avatar Dec 01 '25 10:12 ink-splatters