Skip to content

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

@ink-splatters

Description

@ink-splatters

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": "XXX@XXX.XXX",
    "login": "XXX@XXX.XXX",
    "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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions