A script to listen to the currently playing track on your Spotify account and forward it to a WLED (https://github.com/Aircoookie/WLED) LED matrix with support for animations.
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Error in worker for Refresh task 192.168.31.87:6454:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\background_task.py", line 51, in coro_wrap
await self.coro()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 98, in _process_values_task
universe.send_data()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\universe.py", line 48, in send_data
self._node._send_universe(self._universe, self._data_size, self._data, self)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\impl_artnet\node.py", line 56, in _send_universe
self._send_data(packet)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\pyartnet\base\base_node.py", line 72, in _send_data
ret = self._socket.sendto(self._packet_base + data, self._dst)
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
WARN - API call interval < 2s: 1.99; caller: update_current_track
WARN - API call interval < 2s: 1.98; caller: update_current_track
API call interval: 2.00
Exception in thread Thread-544:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 536, in _make_request
response = conn.getresponse()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connection.py", line 454, in getresponse
httplib_response = super().getresponse()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1377, in getresponse
response.begin()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 320, in begin
version, status, reason = self._read_status()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1242, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1100, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\util\retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\util\util.py", line 39, in reraise
raise value
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
response = self._make_request(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 370, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\handlers\wled\artnet\animations.py", line 82, in __update_track
self.current_track = self.api_handler.update_current_track()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\handlers\spotify_api_handler.py", line 101, in update_current_track
self.current_track = TrackObject(self.spotify.currently_playing())
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 1766, in currently_playing
return self._get("me/player/currently-playing", market=market,
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 323, in _get
return self._internal_call("GET", url, payload, kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 266, in _internal_call
response = self._session.request(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
API call interval: 2.02
Exception in thread Thread-545:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 536, in _make_request
response = conn.getresponse()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connection.py", line 454, in getresponse
httplib_response = super().getresponse()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1377, in getresponse
response.begin()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 320, in begin
version, status, reason = self._read_status()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1242, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1100, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\util\retry.py", line 470, in increment
raise reraise(type(error), error, _stacktrace)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\util\util.py", line 39, in reraise
raise value
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
response = self._make_request(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\urllib3\connectionpool.py", line 370, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "C:\Users\Joey\AppData\Local\Programs\Python\Python39\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\handlers\wled\artnet\animations.py", line 82, in __update_track
self.current_track = self.api_handler.update_current_track()
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\handlers\spotify_api_handler.py", line 101, in update_current_track
self.current_track = TrackObject(self.spotify.currently_playing())
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 1766, in currently_playing
return self._get("me/player/currently-playing", market=market,
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 323, in _get
return self._internal_call("GET", url, payload, kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\spotipy\client.py", line 266, in _internal_call
response = self._session.request(
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Joey\PycharmProjects\SpotifyWLED\venv\lib\site-packages\requests\adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
This issue randomly happens sometimes.
Stacktrace: