- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=FR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=FR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (SyncWorker_0) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (SyncWorker_4) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=GB&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=GB&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=JP&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=JP&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (SyncWorker_2) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=US&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=US&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IT&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IT&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (SyncWorker_1) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=TH&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=TH&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:33 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IL&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IL&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (SyncWorker_3) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=BR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=BR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=GB&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=GB&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (SyncWorker_2) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=FR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=FR&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (SyncWorker_0) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (SyncWorker_1) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=JP&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=JP&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (SyncWorker_4) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=US&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=US&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IT&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=IT&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment
- 2020-08-11 13:09:36 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
- 2020-08-11 13:09:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
- resp = conn.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
- return self.urlopen(
- File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
- retries = retries.increment(method, url, response=response, _pool=self)
- File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=TH&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
- response = self._session.request(
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
- r = adapter.send(request, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
- raise RetryError(e, request=request)
- requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/browse/featured-playlists?locale=en&country=TH&limit=20&offset=0 (Caused by ResponseError('too many 502 error responses'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 105, in run
- return await loop.run_in_executor(executor, pfunc)
- File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
- result = self.fn(*self.args, **self.kwargs)
- File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
- resp = client.featured_playlists(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
- return self._get(
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
- return self._internal_call("GET", url, payload, kwargs)
- File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
- "%s:\n %s" % (response.url, "Max Retries"),
- UnboundLocalError: local variable 'response' referenced before assignment