I recently ported my Alexa skills over to using log-term tokens since the API password in HA has been deprecated.
I’m having problems with some of my skills. Sometimes, the skill will return the correct text to be spoken. But about 1/3 of the time, Alexa says “There was a problem with the requested skill’s response.”
The skill will still execute - I’m just not getting the correct spoken response. Any ideas?
Here’s the HA log associated with one error
2019-11-28 22:02:11 ERROR (MainThread) [homeassistant.components.alexa.intent] Error handling amzn1.ask.skill.XXX
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 67, in async_handle
result = await handler.async_handle(intent)
File "/usr/src/homeassistant/homeassistant/components/intent_script/__init__.py", line 85, in async_handle
await action.async_run(slots)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 162, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 246, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 329, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 98, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1234, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
concurrent.futures._base.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 61, in post
response = await async_handle_message(hass, message)
File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 118, in async_handle_message
return await handler(hass, message)
File "/usr/src/homeassistant/homeassistant/components/alexa/intent.py", line 153, in async_handle_intent
{key: {"value": value} for key, value in alexa_response.variables.items()},
File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 75, in async_handle
raise IntentUnexpectedError(f"Error handling {intent_type}") from err
homeassistant.helpers.intent.IntentUnexpectedError: Error handling amzn1.ask.skill.XXX