Advertisement
denperss

Untitled

Apr 14th, 2021
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.63 KB | None | 0 0
  1. Logger: homeassistant.components.websocket_api.http.connection
  2. Source: custom_components/spotcast/__init__.py:466
  3. Integration: Home Assistant WebSocket API (documentation, issues)
  4. First occurred: 6:52:20 PM (1 occurrences)
  5. Last logged: 6:52:20 PM
  6.  
  7. [546671920704] Could not get spotify token
  8. Traceback (most recent call last):
  9.  File "/config/custom_components/spotcast/__init__.py", line 460, in get_spotify_token
  10.     self._access_token, self._token_expires = st.start_session(
  11.   File "/usr/local/lib/python3.8/site-packages/spotify_token.py", line 18, in start_session
  12.     response = session.get("https://open.spotify.com/get_access_token?reason=transport&productType=web_player",
  13.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
  14.     return self.request('GET', url, **kwargs)
  15.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
  16.     resp = self.send(prep, **send_kwargs)
  17.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 677, in send
  18.     history = [resp for resp in gen]
  19.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 677, in <listcomp>
  20.    history = [resp for resp in gen]
  21.   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 166, in resolve_redirects
  22.     raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
  23. requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
  24.  
  25. During handling of the above exception, another exception occurred:
  26. Traceback (most recent call last):
  27.  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 143, in handle_call_service
  28.     await hass.services.async_call(
  29.   File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
  30.     task.result()
  31.   File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
  32.     await handler.job.target(service_call)
  33.   File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 264, in service_handler
  34.     await script_entity.async_turn_on(
  35.   File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 375, in async_turn_on
  36.     await coro
  37.   File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 392, in _async_run
  38.     return await self.script.async_run(variables, context)
  39.   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1195, in async_run
  40.     await asyncio.shield(run.async_run())
  41.   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 341, in async_run
  42.     await self._async_step(log_exceptions=False)
  43.   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 359, in _async_step
  44.     await getattr(self, handler)()
  45.   File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 559, in _async_call_service_step
  46.     await service_task
  47.   File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
  48.     task.result()
  49.   File "/usr/src/homeassistant/homeassistant/core.py", line 1519, in _execute_service
  50.     await self._hass.async_add_executor_job(handler.job.target, service_call)
  51.   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  52.     result = self.fn(*self.args, **self.kwargs)
  53.   File "/config/custom_components/spotcast/__init__.py", line 354, in start_casting
  54.     access_token, expires = get_token_instance(account).get_spotify_token()
  55.   File "/config/custom_components/spotcast/__init__.py", line 466, in get_spotify_token
  56.     raise HomeAssistantError("Could not get spotify token")
  57. homeassistant.exceptions.HomeAssistantError: Could not get spotify token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement