Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Logger: homeassistant.components.websocket_api.http.connection
- Source: custom_components/spotcast/__init__.py:466
- Integration: Home Assistant WebSocket API (documentation, issues)
- First occurred: 6:52:20 PM (1 occurrences)
- Last logged: 6:52:20 PM
- [546671920704] Could not get spotify token
- Traceback (most recent call last):
- File "/config/custom_components/spotcast/__init__.py", line 460, in get_spotify_token
- self._access_token, self._token_expires = st.start_session(
- File "/usr/local/lib/python3.8/site-packages/spotify_token.py", line 18, in start_session
- response = session.get("https://open.spotify.com/get_access_token?reason=transport&productType=web_player",
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
- return self.request('GET', url, **kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
- resp = self.send(prep, **send_kwargs)
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 677, in send
- history = [resp for resp in gen]
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 677, in <listcomp>
- history = [resp for resp in gen]
- File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 166, in resolve_redirects
- raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp)
- requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 143, in handle_call_service
- await hass.services.async_call(
- File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
- task.result()
- File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
- await handler.job.target(service_call)
- File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 264, in service_handler
- await script_entity.async_turn_on(
- File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 375, in async_turn_on
- await coro
- File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 392, in _async_run
- return await self.script.async_run(variables, context)
- File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1195, in async_run
- await asyncio.shield(run.async_run())
- File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 341, in async_run
- await self._async_step(log_exceptions=False)
- File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 359, in _async_step
- await getattr(self, handler)()
- File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 559, in _async_call_service_step
- await service_task
- File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
- task.result()
- File "/usr/src/homeassistant/homeassistant/core.py", line 1519, in _execute_service
- await self._hass.async_add_executor_job(handler.job.target, service_call)
- 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 354, in start_casting
- access_token, expires = get_token_instance(account).get_spotify_token()
- File "/config/custom_components/spotcast/__init__.py", line 466, in get_spotify_token
- raise HomeAssistantError("Could not get spotify token")
- homeassistant.exceptions.HomeAssistantError: Could not get spotify token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement