Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when copying a playlist #120

Open
Astroflower opened this issue Nov 28, 2024 · 0 comments
Open

Error when copying a playlist #120

Astroflower opened this issue Nov 28, 2024 · 0 comments

Comments

@Astroflower
Copy link

Fully set up and functional, other playlists work just fine, but with a single one of them it returns this error:
Traceback (most recent call last):
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 789, in urlopen
response = self._make_request(
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 536, in _make_re
quest
response = conn.getresponse()
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connection.py", line 507, in getresponse
httplib_response = super().getresponse()
File "c:\program files\python38\lib\http\client.py", line 1344, in getresponse
response.begin()
File "c:\program files\python38\lib\http\client.py", line 307, in begin
version, status, reason = self._read_status()
File "c:\program files\python38\lib\http\client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "c:\program files\python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "c:\program files\python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\program files\python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] Foi forçado o cancelamento de uma conexão existente pelo host remoto

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 843, in urlopen
retries = retries.increment(
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\util\retry.py", line 474, in increment
raise reraise(type(error), error, _stacktrace)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\util\util.py", line 38, in reraise
raise value.with_traceback(tb)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 789, in urlopen
response = self._make_request(
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 536, in _make_re
quest
response = conn.getresponse()
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\urllib3\connection.py", line 507, in getresponse
httplib_response = super().getresponse()
File "c:\program files\python38\lib\http\client.py", line 1344, in getresponse
response.begin()
File "c:\program files\python38\lib\http\client.py", line 307, in begin
version, status, reason = self._read_status()
File "c:\program files\python38\lib\http\client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "c:\program files\python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "c:\program files\python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "c:\program files\python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'Foi forçado o cancelamento de uma
conexão existente pelo host remoto', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\Python38\Scripts\spotify_to_ytmusic.exe_main
.py", line 7, in
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\spotify_to_ytmusic\main.py", line 98, in main
args.func(args)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\spotify_to_ytmusic\controllers.py", line 77, in c
reate
_create_ytmusic(args, playlist, ytmusic)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\spotify_to_ytmusic\controllers.py", line 63, in _
create_ytmusic
videoIds = ytmusic.search_songs(playlist["tracks"])
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\spotify_to_ytmusic\ytmusic.py", line 35, in searc
h_songs
result = self.api.search(query)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\ytmusicapi\mixins\search.py", line 182, in search

response = self._send_request(endpoint, body)

File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\ytmusicapi\ytmusic.py", line 230, in _send_reques
t
response = self._session.post(
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Usuario\AppData\Roaming\Python\Python38\site-packages\requests\adapters.py", line 682, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'Foi forçado o cancelamento de
uma conexão existente pelo host remoto', None, 10054, None))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant