BobbyESP / Spowlo

A Spotify songs downloader for Android made with Jetpack Compose, Material You and the spotDL Python library
https://t.me/spowlo_chatroom
GNU General Public License v3.0
939 stars 19 forks source link

Download error #66

Closed SESH420 closed 10 months ago

SESH420 commented 10 months ago

Checklist

Describe the bug

I copy or share the song link that I want to download, but after a few seconds it gives an error. And it cannot be downloaded.

To Reproduce

No response

Error reports

App version: 1.3.4 (10340) Device information: Android 13 (API 33) Supported ABIs: [arm64-v8a, armeabi-v7a, armeabi] spotDL version: null

URL: https://open.spotify.com/track/4RVRgJXr8rPcHJqE7WLIcQ?si=Mvj5sWd7QruN9Y-_1tyLiA Error executing command: [/data/app/ivJXRa3uY4f6or2tmToaUg==/com.bobbyesp.spowlo-qz3-V0utWD4MOPufJe_Q7Q==/lib/arm64/libpython.bin.so, /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl, download, https://open.spotify.com/track/4RVRgJXr8rPcHJqE7WLIcQ, --output, /storage/emulated/0/Download/Spowlo, --bitrate, 320k, --format, mp3, --no-cache, --ffmpeg, /data/app/ivJXRa3uY4f6or2tmToaUg==/com.bobbyesp.spowlo-qz3-V0utWD4MOPufJe_Q7Q==/lib/arm64/libffmpeg.so], exit code: 1, stderr:

stdout: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:386 in _make_request │ │ │ │ 385 │ │ try: │ │ ❱ 386 │ │ │ self._validate_conn(conn) │ │ 387 │ │ except (SocketTimeout, BaseSSLError) as e: │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:1042 in │ │ _validate_conn │ │ │ │ 1041 │ │ if not getattr(conn, "sock", None): # AppEngine might not ha │ │ ❱ 1042 │ │ │ conn.connect() │ │ 1043 │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connection.py:414 in connect │ │ │ │ 413 │ │ │ │ ❱ 414 │ │ self.sock = ssl_wrap_socket( │ │ 415 │ │ │ sock=conn, │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdlandroid/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/util/ssl.py:449 in ssl_wrap_socket │ │ │ │ 448 │ if send_sni: │ │ ❱ 449 │ │ ssl_sock = _ssl_wrap_socket_impl( │ │ 450 │ │ │ sock, context, tls_in_tls, server_hostname=server_hostname │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdlandroid/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/util/ssl.py:493 in │ │ _ssl_wrap_socket_impl │ │ │ │ 492 │ if server_hostname: │ │ ❱ 493 │ │ return ssl_context.wrap_socket(sock, server_hostname=server_ho │ │ 494 │ else: │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/ssl.py:500 in wrap_socket │ │ │ │ 499 │ │ # ctx._wrap_socket() │ │ ❱ 500 │ │ return self.sslsocket_class._create( │ │ 501 │ │ │ sock=sock, │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/ssl.py:1040 in _create │ │ │ │ 1039 │ │ │ │ │ │ raise ValueError("do_handshake_on_connect sho │ │ ❱ 1040 │ │ │ │ │ self.do_handshake() │ │ 1041 │ │ │ except (OSError, ValueError): │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/ssl.py:1309 in do_handshake │ │ │ │ 1308 │ │ │ │ self.settimeout(None) │ │ ❱ 1309 │ │ │ self._sslobj.do_handshake() │ │ 1310 │ │ finally: │ ╰──────────────────────────────────────────────────────────────────────────────╯ timeout: _ssl.c:1091: The handshake operation timed out During handling of the above exception, another exception occurred: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/requests/adapters.py:489 in send │ │ │ │ 488 │ │ │ if not chunked: │ │ ❱ 489 │ │ │ │ resp = conn.urlopen( │ │ 490 │ │ │ │ │ method=request.method, │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:787 in urlopen │ │ │ │ 786 │ │ │ │ │ ❱ 787 │ │ │ retries = retries.increment( │ │ 788 │ │ │ │ method, url, error=e, _pool=self, _stacktrace=sys.exc │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/util/retry.py:550 in increment │ │ │ │ 549 │ │ │ if read is False or not self._is_method_retryable(method): │ │ ❱ 550 │ │ │ │ raise six.reraise(type(error), error, _stacktrace) │ │ 551 │ │ │ elif read is not None: │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/packages/six.py:770 in reraise │ │ │ │ 769 │ │ │ │ raise value.with_traceback(tb) │ │ ❱ 770 │ │ │ raise value │ │ 771 │ │ finally: │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:703 in urlopen │ │ │ │ 702 │ │ │ # Make the request on the httplib connection object. │ │ ❱ 703 │ │ │ httplib_response = self._make_request( │ │ 704 │ │ │ │ conn, │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:389 in _make_request │ │ │ │ 388 │ │ │ # Py2 raises this as a BaseSSLError, Py3 raises it as soc │ │ ❱ 389 │ │ │ self._raise_timeout(err=e, url=url, timeout_value=conn.ti │ │ 390 │ │ │ raise │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/urllib3/connectionpool.py:340 in │ │ _raise_timeout │ │ │ │ 339 │ │ if isinstance(err, SocketTimeout): │ │ ❱ 340 │ │ │ raise ReadTimeoutError( │ │ 341 │ │ │ │ self, url, "Read timed out. (read timeout=%s)" % time │ ╰──────────────────────────────────────────────────────────────────────────────╯ ReadTimeoutError: HTTPSConnectionPool(host='music.youtube.com', port=443): Read timed out. (read timeout=30) During handling of the above exception, another exception occurred: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/runpy.py:192 in _run_module_as_main │ │ │ │ 191 │ │ sys.argv[0] = mod_spec.origin │ │ ❱ 192 │ return _run_code(code, main_globals, None, │ │ 193 │ │ │ │ │ "main", mod_spec) │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/runpy.py:85 in _run_code │ │ │ │ 84 │ │ │ │ │ spec = mod_spec) │ │ ❱ 85 │ exec(code, run_globals) │ │ 86 │ return run_globals │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/ma │ │ in.py:9 in │ │ │ │ [Errno 20] Not a directory: │ │ '/data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/m │ │ ain.py' │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spot │ │ dl/console/entry_point.py:109 in console_entry_point │ │ │ │ [Errno 20] Not a directory: │ │ '/data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spo │ │ tdl/console/entry_point.py' │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spot │ │ dl/download/downloader.py:198 in init │ │ │ │ [Errno 20] Not a directory: │ │ '/data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spo │ │ tdl/download/downloader.py' │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spot │ │ dl/providers/audio/ytmusic.py:38 in init │ │ │ │ [Errno 20] Not a directory: │ │ '/data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/spotdl/spotdl/spo │ │ tdl/providers/audio/ytmusic.py' │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/ytmusicapi/ytmusic.py:99 in init │ │ │ │ 98 │ │ if 'x-goog-visitor-id' not in self.headers: │ │ ❱ 99 │ │ │ self.headers.update(get_visitor_id(self._send_get_request) │ │ 100 │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/ytmusicapi/helpers.py:34 in get_visitor_id │ │ │ │ 33 def get_visitor_id(request_func): │ │ ❱ 34 │ response = request_func(YTM_DOMAIN) │ │ 35 │ matches = re.findall(r'ytcfg.set\s(\s({.+?})\s)\s;', respons │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/ytmusicapi/ytmusic.py:148 in _send_get_request │ │ │ │ 147 │ def _send_get_request(self, url: str, params: Dict = None): │ │ ❱ 148 │ │ response = self._session.get(url, │ │ 149 │ │ │ │ │ │ │ │ │ params=params, │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/requests/sessions.py:600 in get │ │ │ │ 599 │ │ kwargs.setdefault("allow_redirects", True) │ │ ❱ 600 │ │ return self.request("GET", url, kwargs) │ │ 601 │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/requests/sessions.py:587 in request │ │ │ │ 586 │ │ send_kwargs.update(settings) │ │ ❱ 587 │ │ resp = self.send(prep, send_kwargs) │ │ 588 │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/requests/sessions.py:701 in send │ │ │ │ 700 │ │ # Send the request │ │ ❱ 701 │ │ r = adapter.send(request, **kwargs) │ │ 702 │ │ │ │ /data/user/0/com.bobbyesp.spowlo/no_backup/spotdl_android/packages/python/us │ │ r/lib/python3.8/site-packages/requests/adapters.py:578 in send │ │ │ │ 577 │ │ │ elif isinstance(e, ReadTimeoutError): │ │ ❱ 578 │ │ │ │ raise ReadTimeout(e, request=request) │ │ 579 │ │ │ elif isinstance(e, _InvalidHeader): │ ╰──────────────────────────────────────────────────────────────────────────────╯ ReadTimeout: HTTPSConnectionPool(host='music.youtube.com', port=443): Read timed out. (read timeout=30)

Screenshots & Screen Records

Screenshot_2023-10-26-02-51-48-951_com bobbyesp spowlo

Device info

App version: 1.3.4 (10340) Device information: Android 13 (API 33) Supported ABIs: [arm64-v8a, armeabi-v7a, armeabi] spotDL version: null

Additional context

No response

BobbyESP commented 10 months ago

As I see, it seems to be just a punctual connection error with YT Music. Retry the download and tell me

SESH420 commented 10 months ago

I downloaded it again, it doesn't give an error anymore, thank you.👌👌

BobbyESP commented 10 months ago

Nice to hear it! If you have any other problems, open an issue and we will be glad to help you. Closing this one