Facebook
From Mammoth Octupus, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 137
  1. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  2. Traceback (most recent call last):
  3.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  4.     resp = conn.urlopen(
  5.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  6.     return self.urlopen(
  7.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  8.     return self.urlopen(
  9.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  10.     return self.urlopen(
  11.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  12.     retries = retries.increment(method, url, response=response, _pool=self)
  13.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  14.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  15. 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'))
  16.  
  17. During handling of the above exception, another exception occurred:
  18.  
  19. Traceback (most recent call last):
  20.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  21.     response = self._session.request(
  22.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  23.     resp = self.send(prep, **send_kwargs)
  24.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  25.     r = adapter.send(request, **kwargs)
  26.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  27.     raise RetryError(e, request=request)
  28. 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'))
  29.  
  30. During handling of the above exception, another exception occurred:
  31.  
  32. Traceback (most recent call last):
  33.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  34.     return await loop.run_in_executor(executor, pfunc)
  35.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  36.     result = self.fn(*self.args, **self.kwargs)
  37.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  38.     resp = client.featured_playlists(
  39.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  40.     return self._get(
  41.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  42.     return self._internal_call("GET", url, payload, kwargs)
  43.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  44.     "%s:\n %s" % (response.url, "Max Retries"),
  45. UnboundLocalError: local variable 'response' referenced before assignment
  46. 2020-08-11 13:09:33 ERROR (SyncWorker_0) [spotipy.client] Max Retries reached
  47. 2020-08-11 13:09:33 ERROR (SyncWorker_4) [spotipy.client] Max Retries reached
  48. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  49. Traceback (most recent call last):
  50.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  51.     resp = conn.urlopen(
  52.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  53.     return self.urlopen(
  54.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  55.     return self.urlopen(
  56.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  57.     return self.urlopen(
  58.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  59.     retries = retries.increment(method, url, response=response, _pool=self)
  60.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  61.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  62. 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'))
  63.  
  64. During handling of the above exception, another exception occurred:
  65.  
  66. Traceback (most recent call last):
  67.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  68.     response = self._session.request(
  69.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  70.     resp = self.send(prep, **send_kwargs)
  71.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  72.     r = adapter.send(request, **kwargs)
  73.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  74.     raise RetryError(e, request=request)
  75. 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'))
  76.  
  77. During handling of the above exception, another exception occurred:
  78.  
  79. Traceback (most recent call last):
  80.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  81.     return await loop.run_in_executor(executor, pfunc)
  82.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  83.     result = self.fn(*self.args, **self.kwargs)
  84.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  85.     resp = client.featured_playlists(
  86.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  87.     return self._get(
  88.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  89.     return self._internal_call("GET", url, payload, kwargs)
  90.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  91.     "%s:\n %s" % (response.url, "Max Retries"),
  92. UnboundLocalError: local variable 'response' referenced before assignment
  93. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  94. Traceback (most recent call last):
  95.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  96.     resp = conn.urlopen(
  97.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  98.     return self.urlopen(
  99.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  100.     return self.urlopen(
  101.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  102.     return self.urlopen(
  103.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  104.     retries = retries.increment(method, url, response=response, _pool=self)
  105.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  106.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  107. 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'))
  108.  
  109. During handling of the above exception, another exception occurred:
  110.  
  111. Traceback (most recent call last):
  112.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  113.     response = self._session.request(
  114.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  115.     resp = self.send(prep, **send_kwargs)
  116.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  117.     r = adapter.send(request, **kwargs)
  118.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  119.     raise RetryError(e, request=request)
  120. 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'))
  121.  
  122. During handling of the above exception, another exception occurred:
  123.  
  124. Traceback (most recent call last):
  125.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  126.     return await loop.run_in_executor(executor, pfunc)
  127.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  128.     result = self.fn(*self.args, **self.kwargs)
  129.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  130.     resp = client.featured_playlists(
  131.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  132.     return self._get(
  133.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  134.     return self._internal_call("GET", url, payload, kwargs)
  135.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  136.     "%s:\n %s" % (response.url, "Max Retries"),
  137. UnboundLocalError: local variable 'response' referenced before assignment
  138. 2020-08-11 13:09:33 ERROR (SyncWorker_2) [spotipy.client] Max Retries reached
  139. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  140. Traceback (most recent call last):
  141.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  142.     resp = conn.urlopen(
  143.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  144.     return self.urlopen(
  145.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  146.     return self.urlopen(
  147.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  148.     return self.urlopen(
  149.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  150.     retries = retries.increment(method, url, response=response, _pool=self)
  151.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  152.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  153. 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'))
  154.  
  155. During handling of the above exception, another exception occurred:
  156.  
  157. Traceback (most recent call last):
  158.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  159.     response = self._session.request(
  160.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  161.     resp = self.send(prep, **send_kwargs)
  162.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  163.     r = adapter.send(request, **kwargs)
  164.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  165.     raise RetryError(e, request=request)
  166. 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'))
  167.  
  168. During handling of the above exception, another exception occurred:
  169.  
  170. Traceback (most recent call last):
  171.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  172.     return await loop.run_in_executor(executor, pfunc)
  173.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  174.     result = self.fn(*self.args, **self.kwargs)
  175.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  176.     resp = client.featured_playlists(
  177.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  178.     return self._get(
  179.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  180.     return self._internal_call("GET", url, payload, kwargs)
  181.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  182.     "%s:\n %s" % (response.url, "Max Retries"),
  183. UnboundLocalError: local variable 'response' referenced before assignment
  184. 2020-08-11 13:09:33 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached
  185. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  186. Traceback (most recent call last):
  187.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  188.     resp = conn.urlopen(
  189.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  190.     return self.urlopen(
  191.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  192.     return self.urlopen(
  193.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  194.     return self.urlopen(
  195.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  196.     retries = retries.increment(method, url, response=response, _pool=self)
  197.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  198.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  199. 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'))
  200.  
  201. During handling of the above exception, another exception occurred:
  202.  
  203. Traceback (most recent call last):
  204.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  205.     response = self._session.request(
  206.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  207.     resp = self.send(prep, **send_kwargs)
  208.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  209.     r = adapter.send(request, **kwargs)
  210.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  211.     raise RetryError(e, request=request)
  212. 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'))
  213.  
  214. During handling of the above exception, another exception occurred:
  215.  
  216. Traceback (most recent call last):
  217.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  218.     return await loop.run_in_executor(executor, pfunc)
  219.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  220.     result = self.fn(*self.args, **self.kwargs)
  221.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  222.     resp = client.featured_playlists(
  223.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  224.     return self._get(
  225.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  226.     return self._internal_call("GET", url, payload, kwargs)
  227.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  228.     "%s:\n %s" % (response.url, "Max Retries"),
  229. UnboundLocalError: local variable 'response' referenced before assignment
  230. 2020-08-11 13:09:33 ERROR (SyncWorker_1) [spotipy.client] Max Retries reached
  231. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  232. Traceback (most recent call last):
  233.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  234.     resp = conn.urlopen(
  235.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  236.     return self.urlopen(
  237.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  238.     return self.urlopen(
  239.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  240.     return self.urlopen(
  241.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  242.     retries = retries.increment(method, url, response=response, _pool=self)
  243.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  244.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  245. 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'))
  246.  
  247. During handling of the above exception, another exception occurred:
  248.  
  249. Traceback (most recent call last):
  250.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  251.     response = self._session.request(
  252.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  253.     resp = self.send(prep, **send_kwargs)
  254.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  255.     r = adapter.send(request, **kwargs)
  256.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  257.     raise RetryError(e, request=request)
  258. 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'))
  259.  
  260. During handling of the above exception, another exception occurred:
  261.  
  262. Traceback (most recent call last):
  263.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  264.     return await loop.run_in_executor(executor, pfunc)
  265.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  266.     result = self.fn(*self.args, **self.kwargs)
  267.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  268.     resp = client.featured_playlists(
  269.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  270.     return self._get(
  271.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  272.     return self._internal_call("GET", url, payload, kwargs)
  273.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  274.     "%s:\n %s" % (response.url, "Max Retries"),
  275. UnboundLocalError: local variable 'response' referenced before assignment
  276. 2020-08-11 13:09:33 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
  277. 2020-08-11 13:09:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  278. Traceback (most recent call last):
  279.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  280.     resp = conn.urlopen(
  281.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  282.     return self.urlopen(
  283.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  284.     return self.urlopen(
  285.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  286.     return self.urlopen(
  287.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  288.     retries = retries.increment(method, url, response=response, _pool=self)
  289.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  290.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  291. 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'))
  292.  
  293. During handling of the above exception, another exception occurred:
  294.  
  295. Traceback (most recent call last):
  296.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  297.     response = self._session.request(
  298.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  299.     resp = self.send(prep, **send_kwargs)
  300.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  301.     r = adapter.send(request, **kwargs)
  302.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  303.     raise RetryError(e, request=request)
  304. 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'))
  305.  
  306. During handling of the above exception, another exception occurred:
  307.  
  308. Traceback (most recent call last):
  309.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  310.     return await loop.run_in_executor(executor, pfunc)
  311.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  312.     result = self.fn(*self.args, **self.kwargs)
  313.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  314.     resp = client.featured_playlists(
  315.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  316.     return self._get(
  317.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  318.     return self._internal_call("GET", url, payload, kwargs)
  319.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  320.     "%s:\n %s" % (response.url, "Max Retries"),
  321. UnboundLocalError: local variable 'response' referenced before assignment
  322. 2020-08-11 13:09:35 ERROR (SyncWorker_3) [spotipy.client] Max Retries reached
  323. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  324. Traceback (most recent call last):
  325.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  326.     resp = conn.urlopen(
  327.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  328.     return self.urlopen(
  329.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  330.     return self.urlopen(
  331.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  332.     return self.urlopen(
  333.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  334.     retries = retries.increment(method, url, response=response, _pool=self)
  335.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  336.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  337. 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'))
  338.  
  339. During handling of the above exception, another exception occurred:
  340.  
  341. Traceback (most recent call last):
  342.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  343.     response = self._session.request(
  344.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  345.     resp = self.send(prep, **send_kwargs)
  346.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  347.     r = adapter.send(request, **kwargs)
  348.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  349.     raise RetryError(e, request=request)
  350. 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'))
  351.  
  352. During handling of the above exception, another exception occurred:
  353.  
  354. Traceback (most recent call last):
  355.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  356.     return await loop.run_in_executor(executor, pfunc)
  357.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  358.     result = self.fn(*self.args, **self.kwargs)
  359.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  360.     resp = client.featured_playlists(
  361.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  362.     return self._get(
  363.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  364.     return self._internal_call("GET", url, payload, kwargs)
  365.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  366.     "%s:\n %s" % (response.url, "Max Retries"),
  367. UnboundLocalError: local variable 'response' referenced before assignment
  368. 2020-08-11 13:09:35 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached
  369. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  370. Traceback (most recent call last):
  371.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  372.     resp = conn.urlopen(
  373.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  374.     return self.urlopen(
  375.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  376.     return self.urlopen(
  377.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  378.     return self.urlopen(
  379.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  380.     retries = retries.increment(method, url, response=response, _pool=self)
  381.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  382.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  383. 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'))
  384.  
  385. During handling of the above exception, another exception occurred:
  386.  
  387. Traceback (most recent call last):
  388.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  389.     response = self._session.request(
  390.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  391.     resp = self.send(prep, **send_kwargs)
  392.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  393.     r = adapter.send(request, **kwargs)
  394.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  395.     raise RetryError(e, request=request)
  396. 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'))
  397.  
  398. During handling of the above exception, another exception occurred:
  399.  
  400. Traceback (most recent call last):
  401.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  402.     return await loop.run_in_executor(executor, pfunc)
  403.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  404.     result = self.fn(*self.args, **self.kwargs)
  405.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  406.     resp = client.featured_playlists(
  407.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  408.     return self._get(
  409.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  410.     return self._internal_call("GET", url, payload, kwargs)
  411.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  412.     "%s:\n %s" % (response.url, "Max Retries"),
  413. UnboundLocalError: local variable 'response' referenced before assignment
  414. 2020-08-11 13:09:35 ERROR (SyncWorker_2) [spotipy.client] Max Retries reached
  415. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  416. Traceback (most recent call last):
  417.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  418.     resp = conn.urlopen(
  419.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  420.     return self.urlopen(
  421.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  422.     return self.urlopen(
  423.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  424.     return self.urlopen(
  425.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  426.     retries = retries.increment(method, url, response=response, _pool=self)
  427.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  428.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  429. 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'))
  430.  
  431. During handling of the above exception, another exception occurred:
  432.  
  433. Traceback (most recent call last):
  434.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  435.     response = self._session.request(
  436.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  437.     resp = self.send(prep, **send_kwargs)
  438.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  439.     r = adapter.send(request, **kwargs)
  440.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  441.     raise RetryError(e, request=request)
  442. 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'))
  443.  
  444. During handling of the above exception, another exception occurred:
  445.  
  446. Traceback (most recent call last):
  447.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  448.     return await loop.run_in_executor(executor, pfunc)
  449.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  450.     result = self.fn(*self.args, **self.kwargs)
  451.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  452.     resp = client.featured_playlists(
  453.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  454.     return self._get(
  455.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  456.     return self._internal_call("GET", url, payload, kwargs)
  457.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  458.     "%s:\n %s" % (response.url, "Max Retries"),
  459. UnboundLocalError: local variable 'response' referenced before assignment
  460. 2020-08-11 13:09:35 ERROR (SyncWorker_0) [spotipy.client] Max Retries reached
  461. 2020-08-11 13:09:35 ERROR (SyncWorker_1) [spotipy.client] Max Retries reached
  462. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  463. Traceback (most recent call last):
  464.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  465.     resp = conn.urlopen(
  466.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  467.     return self.urlopen(
  468.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  469.     return self.urlopen(
  470.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  471.     return self.urlopen(
  472.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  473.     retries = retries.increment(method, url, response=response, _pool=self)
  474.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  475.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  476. 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'))
  477.  
  478. During handling of the above exception, another exception occurred:
  479.  
  480. Traceback (most recent call last):
  481.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  482.     response = self._session.request(
  483.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  484.     resp = self.send(prep, **send_kwargs)
  485.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  486.     r = adapter.send(request, **kwargs)
  487.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  488.     raise RetryError(e, request=request)
  489. 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'))
  490.  
  491. During handling of the above exception, another exception occurred:
  492.  
  493. Traceback (most recent call last):
  494.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  495.     return await loop.run_in_executor(executor, pfunc)
  496.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  497.     result = self.fn(*self.args, **self.kwargs)
  498.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  499.     resp = client.featured_playlists(
  500.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  501.     return self._get(
  502.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  503.     return self._internal_call("GET", url, payload, kwargs)
  504.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  505.     "%s:\n %s" % (response.url, "Max Retries"),
  506. UnboundLocalError: local variable 'response' referenced before assignment
  507. 2020-08-11 13:09:35 ERROR (SyncWorker_4) [spotipy.client] Max Retries reached
  508. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  509. Traceback (most recent call last):
  510.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  511.     resp = conn.urlopen(
  512.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  513.     return self.urlopen(
  514.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  515.     return self.urlopen(
  516.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  517.     return self.urlopen(
  518.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  519.     retries = retries.increment(method, url, response=response, _pool=self)
  520.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  521.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  522. 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'))
  523.  
  524. During handling of the above exception, another exception occurred:
  525.  
  526. Traceback (most recent call last):
  527.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  528.     response = self._session.request(
  529.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  530.     resp = self.send(prep, **send_kwargs)
  531.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  532.     r = adapter.send(request, **kwargs)
  533.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  534.     raise RetryError(e, request=request)
  535. 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'))
  536.  
  537. During handling of the above exception, another exception occurred:
  538.  
  539. Traceback (most recent call last):
  540.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  541.     return await loop.run_in_executor(executor, pfunc)
  542.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  543.     result = self.fn(*self.args, **self.kwargs)
  544.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  545.     resp = client.featured_playlists(
  546.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  547.     return self._get(
  548.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  549.     return self._internal_call("GET", url, payload, kwargs)
  550.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  551.     "%s:\n %s" % (response.url, "Max Retries"),
  552. UnboundLocalError: local variable 'response' referenced before assignment
  553. 2020-08-11 13:09:35 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  554. Traceback (most recent call last):
  555.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  556.     resp = conn.urlopen(
  557.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  558.     return self.urlopen(
  559.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  560.     return self.urlopen(
  561.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  562.     return self.urlopen(
  563.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  564.     retries = retries.increment(method, url, response=response, _pool=self)
  565.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  566.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  567. 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'))
  568.  
  569. During handling of the above exception, another exception occurred:
  570.  
  571. Traceback (most recent call last):
  572.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  573.     response = self._session.request(
  574.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  575.     resp = self.send(prep, **send_kwargs)
  576.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  577.     r = adapter.send(request, **kwargs)
  578.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  579.     raise RetryError(e, request=request)
  580. 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'))
  581.  
  582. During handling of the above exception, another exception occurred:
  583.  
  584. Traceback (most recent call last):
  585.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  586.     return await loop.run_in_executor(executor, pfunc)
  587.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  588.     result = self.fn(*self.args, **self.kwargs)
  589.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  590.     resp = client.featured_playlists(
  591.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  592.     return self._get(
  593.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  594.     return self._internal_call("GET", url, payload, kwargs)
  595.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  596.     "%s:\n %s" % (response.url, "Max Retries"),
  597. UnboundLocalError: local variable 'response' referenced before assignment
  598. 2020-08-11 13:09:36 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
  599. 2020-08-11 13:09:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  600. Traceback (most recent call last):
  601.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
  602.     resp = conn.urlopen(
  603.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  604.     return self.urlopen(
  605.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  606.     return self.urlopen(
  607.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 817, in urlopen
  608.     return self.urlopen(
  609.   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 807, in urlopen
  610.     retries = retries.increment(method, url, response=response, _pool=self)
  611.   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
  612.     raise MaxRetryError(_pool, url, error or ResponseError(cause))
  613. 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'))
  614.  
  615. During handling of the above exception, another exception occurred:
  616.  
  617. Traceback (most recent call last):
  618.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 167, in _internal_call
  619.     response = self._session.request(
  620.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
  621.     resp = self.send(prep, **send_kwargs)
  622.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
  623.     r = adapter.send(request, **kwargs)
  624.   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 507, in send
  625.     raise RetryError(e, request=request)
  626. 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'))
  627.  
  628. During handling of the above exception, another exception occurred:
  629.  
  630. Traceback (most recent call last):
  631.   File "/config/custom_components/spotcast/__init__.py", line 105, in run
  632.     return await loop.run_in_executor(executor, pfunc)
  633.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  634.     result = self.fn(*self.args, **self.kwargs)
  635.   File "/config/custom_components/spotcast/__init__.py", line 162, in get_playlist
  636.     resp = client.featured_playlists(
  637.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 1081, in featured_playlists
  638.     return self._get(
  639.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 207, in _get
  640.     return self._internal_call("GET", url, payload, kwargs)
  641.   File "/usr/local/lib/python3.8/site-packages/spotipy/client.py", line 194, in _internal_call
  642.     "%s:\n %s" % (response.url, "Max Retries"),
  643. UnboundLocalError: local variable 'response' referenced before assignment