Open Rexadev opened 1 year ago
It to be fixed, Delete this file credentials.json
It to be fixed, Delete this file
credentials.json
i didnt create the file how did it get there
It generated by the script. It stores the credentials. If this credentials expires, throw errors
@yogeshwaran01 Still the same serror after deleting the credentials.json
Syncing Playlists ..
Syncing between Spotify: xx and YouTube: xx
Traceback (most recent call last):
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\util\connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connection.py", line 363, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001A7A0CD4800>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='accounts.spotify.com', port=443): Max retries exceeded with url: /api/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001A7A0CD4800>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\spotify-playlist-to-youtube-playlist (yogeshwaran01)\spotify-playlist-to-youtube-playlist-2023-09-07\main.py", line 231, in <module>
cli()
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\spotify-playlist-to-youtube-playlist (yogeshwaran01)\spotify-playlist-to-youtube-playlist-2023-09-07\main.py", line 160, in sync
spotify_playlist = spotify.get_playlist(playlist["spotify_playlist_id"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\spotify-playlist-to-youtube-playlist (yogeshwaran01)\spotify-playlist-to-youtube-playlist-2023-09-07\spotify_client.py", line 28, in get_playlist
playlist = self.spotify.playlist(id)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\client.py", line 651, in playlist
return self._get(
^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\client.py", line 323, in _get
return self._internal_call("GET", url, payload, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\client.py", line 247, in _internal_call
headers = self._auth_headers()
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\client.py", line 238, in _auth_headers
token = self.auth_manager.get_access_token(as_dict=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\oauth2.py", line 238, in get_access_token token_info = self._request_access_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\1 Organized\y System\Python\Lib\site-packages\spotipy\oauth2.py", line 257, in _request_access_token
response = self._session.post(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User*\AppData\Roaming\Python\Python312\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='accounts.spotify.com', port=443): Max retries exceeded with url: /api/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001A7A0CD4800>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Press any key to continue . . .
It is a connection error. Check for stable Internet connection.
It is a connection error. Check for stable Internet connection.
My internet is good
Try after sometime
It worked
But Sometimes it also shows The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>.', 'domain': 'youtube.quota', 'reason': 'quotaExceeded'}
Please add feature to show error instead of python line error
@yogeshwaran01 project dead