Manzana-Apple-Music-Downloader icon indicating copy to clipboard operation
Manzana-Apple-Music-Downloader copied to clipboard

traceback (most recent call last)

Open gerberanub opened this issue 9 months ago • 0 comments

:06:16] [ManzanaCore] INFO: Decrypting audio... [04:06:16] [ManzanaCore] INFO: Muxing audio... [04:06:16] [ManzanaCore] INFO: Tagging audio... [04:06:16] [ManzanaCore] INFO: Embedding artwork... [04:06:17] [ManzanaCore] INFO: Saving time-synced lyrics...

[04:06:17] [ManzanaCore] INFO: Getting webplayback... [04:06:17] [ManzanaCore] INFO: Parsing song uri... [04:06:17] [ManzanaCore] INFO: Checking decrypt keys... [04:06:17] [ManzanaCore] INFO: Requesting decrypt keys... [04:06:18] [ManzanaCore] INFO: Saving decrypt keys... [04:06:18] [ManzanaCore] INFO: Downloading "98 - Nodding Off"...

     Downloading ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% 0.0/11.5 MB ? eta -:--:--

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py:793 in │ │ urlopen │ │ │ │ 790 │ │ │ response_conn = conn if not release_conn else None │ │ 791 │ │ │ │ │ 792 │ │ │ # Make the request on the HTTPConnection object │ │ ❱ 793 │ │ │ response = self._make_request( │ │ 794 │ │ │ │ conn, │ │ 795 │ │ │ │ method, │ │ 796 │ │ │ │ url, │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py:537 in │ │ _make_request │ │ │ │ 534 │ │ │ │ 535 │ │ # Receive the response from the server │ │ 536 │ │ try: │ │ ❱ 537 │ │ │ response = conn.getresponse() │ │ 538 │ │ except (BaseSSLError, OSError) as e: │ │ 539 │ │ │ self._raise_timeout(err=e, url=url, timeout_value=read_timeout) │ │ 540 │ │ │ raise │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py:466 in │ │ getresponse │ │ │ │ 463 │ │ from .response import HTTPResponse │ │ 464 │ │ │ │ 465 │ │ # Get the response from http.client.HTTPConnection │ │ ❱ 466 │ │ httplib_response = super().getresponse() │ │ 467 │ │ │ │ 468 │ │ try: │ │ 469 │ │ │ assert_header_parsing(httplib_response.msg) │ │ │ │ C:\Program Files\Python39\lib\http\client.py:1347 in getresponse │ │ │ │ 1344 │ │ │ │ 1345 │ │ try: │ │ 1346 │ │ │ try: │ │ ❱ 1347 │ │ │ │ response.begin() │ │ 1348 │ │ │ except ConnectionError: │ │ 1349 │ │ │ │ self.close() │ │ 1350 │ │ │ │ raise │ │ │ │ C:\Program Files\Python39\lib\http\client.py:307 in begin │ │ │ │ 304 │ │ │ │ 305 │ │ # read until we get a non-100 response │ │ 306 │ │ while True: │ │ ❱ 307 │ │ │ version, status, reason = self._read_status() │ │ 308 │ │ │ if status != CONTINUE: │ │ 309 │ │ │ │ break │ │ 310 │ │ │ # skip the header from the 100 response │ │ │ │ C:\Program Files\Python39\lib\http\client.py:276 in _read_status │ │ │ │ 273 │ │ if not line: │ │ 274 │ │ │ # Presumably, the server closed the connection before │ │ 275 │ │ │ # sending a valid response. │ │ ❱ 276 │ │ │ raise RemoteDisconnected("Remote end closed connection without" │ │ 277 │ │ │ │ │ │ │ │ │ " response") │ │ 278 │ │ try: │ │ 279 │ │ │ version, status, reason = line.split(None, 2) │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\adapters.py:486 in send │ │ │ │ 483 │ │ │ timeout = TimeoutSauce(connect=timeout, read=timeout) │ │ 484 │ │ │ │ 485 │ │ try: │ │ ❱ 486 │ │ │ resp = conn.urlopen( │ │ 487 │ │ │ │ method=request.method, │ │ 488 │ │ │ │ url=url, │ │ 489 │ │ │ │ body=request.body, │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py:847 in │ │ urlopen │ │ │ │ 844 │ │ │ elif isinstance(new_e, (OSError, HTTPException)): │ │ 845 │ │ │ │ new_e = ProtocolError("Connection aborted.", new_e) │ │ 846 │ │ │ │ │ ❱ 847 │ │ │ retries = retries.increment( │ │ 848 │ │ │ │ method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2] │ │ 849 │ │ │ ) │ │ 850 │ │ │ retries.sleep() │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\util\retry.py:470 in │ │ increment │ │ │ │ 467 │ │ elif error and self._is_read_error(error): │ │ 468 │ │ │ # Read retry? │ │ 469 │ │ │ if read is False or method is None or not self._is_method_retryable(method): │ │ ❱ 470 │ │ │ │ raise reraise(type(error), error, _stacktrace) │ │ 471 │ │ │ elif read is not None: │ │ 472 │ │ │ │ read -= 1 │ │ 473 │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\util\util.py:38 in reraise │ │ │ │ 35 ) -> typing.NoReturn: │ │ 36 │ try: │ │ 37 │ │ if value.traceback is not tb: │ │ ❱ 38 │ │ │ raise value.with_traceback(tb) │ │ 39 │ │ raise value │ │ 40 │ finally: │ │ 41 │ │ value = None # type: ignore[assignment] │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py:793 in │ │ urlopen │ │ │ │ 790 │ │ │ response_conn = conn if not release_conn else None │ │ 791 │ │ │ │ │ 792 │ │ │ # Make the request on the HTTPConnection object │ │ ❱ 793 │ │ │ response = self._make_request( │ │ 794 │ │ │ │ conn, │ │ 795 │ │ │ │ method, │ │ 796 │ │ │ │ url, │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py:537 in │ │ _make_request │ │ │ │ 534 │ │ │ │ 535 │ │ # Receive the response from the server │ │ 536 │ │ try: │ │ ❱ 537 │ │ │ response = conn.getresponse() │ │ 538 │ │ except (BaseSSLError, OSError) as e: │ │ 539 │ │ │ self._raise_timeout(err=e, url=url, timeout_value=read_timeout) │ │ 540 │ │ │ raise │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py:466 in │ │ getresponse │ │ │ │ 463 │ │ from .response import HTTPResponse │ │ 464 │ │ │ │ 465 │ │ # Get the response from http.client.HTTPConnection │ │ ❱ 466 │ │ httplib_response = super().getresponse() │ │ 467 │ │ │ │ 468 │ │ try: │ │ 469 │ │ │ assert_header_parsing(httplib_response.msg) │ │ │ │ C:\Program Files\Python39\lib\http\client.py:1347 in getresponse │ │ │ │ 1344 │ │ │ │ 1345 │ │ try: │ │ 1346 │ │ │ try: │ │ ❱ 1347 │ │ │ │ response.begin() │ │ 1348 │ │ │ except ConnectionError: │ │ 1349 │ │ │ │ self.close() │ │ 1350 │ │ │ │ raise │ │ │ │ C:\Program Files\Python39\lib\http\client.py:307 in begin │ │ │ │ 304 │ │ │ │ 305 │ │ # read until we get a non-100 response │ │ 306 │ │ while True: │ │ ❱ 307 │ │ │ version, status, reason = self._read_status() │ │ 308 │ │ │ if status != CONTINUE: │ │ 309 │ │ │ │ break │ │ 310 │ │ │ # skip the header from the 100 response │ │ │ │ C:\Program Files\Python39\lib\http\client.py:276 in _read_status │ │ │ │ 273 │ │ if not line: │ │ 274 │ │ │ # Presumably, the server closed the connection before │ │ 275 │ │ │ # sending a valid response. │ │ ❱ 276 │ │ │ raise RemoteDisconnected("Remote end closed connection without" │ │ 277 │ │ │ │ │ │ │ │ │ " response") │ │ 278 │ │ try: │ │ 279 │ │ │ version, status, reason = line.split(None, 2) │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ E:\manzana\manzana.py:83 in │ │ │ │ 80 │ print(LOGO) │ │ 81 │ args = main() │ │ 82 │ config.get_config() │ │ ❱ 83 │ run(args) │ │ 84 │ │ │ │ E:\manzana\core\control.py:196 in run │ │ │ │ 193 │ │ │ │ │ │ │ │ │ 194 │ │ │ │ │ │ │ logger.info(f'Downloading "{track["file"]}"...') │ │ 195 │ │ │ │ │ │ │ │ │ ❱ 196 │ │ │ │ │ │ │ download( │ │ 197 │ │ │ │ │ │ │ │ track["streams"]["uri"], │ │ 198 │ │ │ │ │ │ │ │ __enc_fp │ │ 199 │ │ │ │ │ │ │ ) │ │ │ │ E:\manzana\core\process\download.py:33 in download │ │ │ │ 30 │ │ with open(filename, "wb") as fd: │ │ 31 │ │ │ progress.start_task(taskId) │ │ 32 │ │ │ for u in url: │ │ ❱ 33 │ │ │ │ r = requests.get(u, stream=True) │ │ 34 │ │ │ │ for data in r.iter_content(chunk_size=32768): │ │ 35 │ │ │ │ │ if data: │ │ 36 │ │ │ │ │ │ fd.write(data) │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\api.py:73 in get │ │ │ │ 70 │ :rtype: requests.Response │ │ 71 │ """ │ │ 72 │ │ │ ❱ 73 │ return request("get", url, params=params, **kwargs) │ │ 74 │ │ 75 │ │ 76 def options(url, **kwargs): │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\api.py:59 in request │ │ │ │ 56 │ # avoid leaving sockets open which can trigger a ResourceWarning in some │ │ 57 │ # cases, and look like a memory leak in others. │ │ 58 │ with sessions.Session() as session: │ │ ❱ 59 │ │ return session.request(method=method, url=url, **kwargs) │ │ 60 │ │ 61 │ │ 62 def get(url, params=None, **kwargs): │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\sessions.py:589 in request │ │ │ │ 586 │ │ │ "allow_redirects": allow_redirects, │ │ 587 │ │ } │ │ 588 │ │ send_kwargs.update(settings) │ │ ❱ 589 │ │ resp = self.send(prep, **send_kwargs) │ │ 590 │ │ │ │ 591 │ │ return resp │ │ 592 │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\sessions.py:703 in send │ │ │ │ 700 │ │ start = preferred_clock() │ │ 701 │ │ │ │ 702 │ │ # Send the request │ │ ❱ 703 │ │ r = adapter.send(request, **kwargs) │ │ 704 │ │ │ │ 705 │ │ # Total elapsed time of the request (approximately) │ │ 706 │ │ elapsed = preferred_clock() - start │ │ │ │ C:\Users\lee_e\AppData\Roaming\Python\Python39\site-packages\requests\adapters.py:501 in send │ │ │ │ 498 │ │ │ ) │ │ 499 │ │ │ │ 500 │ │ except (ProtocolError, OSError) as err: │ │ ❱ 501 │ │ │ raise ConnectionError(err, request=request) │ │ 502 │ │ │ │ 503 │ │ except MaxRetryError as e: │ │ 504 │ │ │ if isinstance(e.reason, ConnectTimeoutError): │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) PS E:\manzana>

what is the problem ?? no problem so far now. but suddenly can't download

gerberanub avatar May 08 '24 19:05 gerberanub