Skip to content

[BUG] Deezer Broken: JSONDecodeError: Expecting value: line 1 column 1 (char 0) #916

@DarkCTO

Description

@DarkCTO

Describe the bug

arl supported already

seems like something changes from deezer.

Command Used

rip url https://www.deezer.com/us/album/47780942

Debug Traceback

╭────────────────────────── Traceback (most recent call last) ──────────────────────────╮
│ /home/kudy/miniconda3/lib/python3.12/site-packages/requests/models.py:976 in json     │
│                                                                                       │
│    973 │   │   │   │   │   raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)         │
│    974 │   │                                                                          │
│    975 │   │   try:                                                                   │
│ ❱  976 │   │   │   return complexjson.loads(self.text, **kwargs)                      │
│    977 │   │   except JSONDecodeError as e:                                           │
│    978 │   │   │   # Catch JSON-related errors and raise as requests.JSONDecodeError  │
│    979 │   │   │   # This aliases json.JSONDecodeError and simplejson.JSONDecodeError │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/json/__init__.py:346 in loads                    │
│                                                                                       │
│   343 │   if (cls is None and object_hook is None and                                 │
│   344 │   │   │   parse_int is None and parse_float is None and                       │
│   345 │   │   │   parse_constant is None and object_pairs_hook is None and not kw):   │
│ ❱ 346 │   │   return _default_decoder.decode(s)                                       │
│   347 │   if cls is None:                                                             │
│   348 │   │   cls = JSONDecoder                                                       │
│   349 │   if object_hook is not None:                                                 │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/json/decoder.py:338 in decode                    │
│                                                                                       │
│   335 │   │   containing a JSON document).                                            │
│   336 │   │                                                                           │
│   337 │   │   """                                                                     │
│ ❱ 338 │   │   obj, end = self.raw_decode(s, idx=_w(s, 0).end())                       │
│   339 │   │   end = _w(s, end).end()                                                  │
│   340 │   │   if end != len(s):                                                       │
│   341 │   │   │   raise JSONDecodeError("Extra data", s, end)                         │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/json/decoder.py:356 in raw_decode                │
│                                                                                       │
│   353 │   │   try:                                                                    │
│   354 │   │   │   obj, end = self.scan_once(s, idx)                                   │
│   355 │   │   except StopIteration as err:                                            │
│ ❱ 356 │   │   │   raise JSONDecodeError("Expecting value", s, err.value) from None    │
│   357 │   │   return obj, end                                                         │
│   358                                                                                 │
╰───────────────────────────────────────────────────────────────────────────────────────╯
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

╭────────────────────────── Traceback (most recent call last) ──────────────────────────╮
│ /home/kudy/miniconda3/bin/rip:7 in <module>                                           │
│                                                                                       │
│   4 if __name__ == '__main__':                                                        │
│   5 │   if sys.argv[0].endswith('.exe'):                                              │
│   6 │   │   sys.argv[0] = sys.argv[0][:-4]                                            │
│ ❱ 7 │   sys.exit(rip())                                                               │
│   8                                                                                   │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/site-packages/click/core.py:1161 in __call__     │
│                                                                                       │
│                               ... 15 frames hidden ...                                │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/site-packages/deezer/gw.py:48 in api_call        │
│                                                                                       │
│    45 │   │   │   │   timeout=30,                                                     │
│    46 │   │   │   │   json=args,                                                      │
│    47 │   │   │   │   headers=self.http_headers                                       │
│ ❱  48 │   │   │   ).json()                                                            │
│    49 │   │   except (requests.ConnectionError, requests.Timeout):                    │
│    50 │   │   │   sleep(2)                                                            │
│    51 │   │   │   return self.api_call(method, args, params)                          │
│                                                                                       │
│ /home/kudy/miniconda3/lib/python3.12/site-packages/requests/models.py:980 in json     │
│                                                                                       │
│    977 │   │   except JSONDecodeError as e:                                           │
│    978 │   │   │   # Catch JSON-related errors and raise as requests.JSONDecodeError  │
│    979 │   │   │   # This aliases json.JSONDecodeError and simplejson.JSONDecodeError │
│ ❱  980 │   │   │   raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)                 │
│    981 │                                                                              │
│    982 │   @property                                                                  │
│    983 │   def links(self):                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────╯
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Config File

N/A

Operating System

Linux

streamrip version

2.2.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