[ERROR] TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/var/task/ask_sdk_core/skill_builder.py", line 111, in wrapper
request_envelope=request_envelope, context=context)
File "/var/task/ask_sdk_core/skill.py", line 207, in invoke
handler_input=handler_input)
File "/var/task/ask_sdk_runtime/dispatch.py", line 131, in dispatch
return exception_handler.handle(handler_input, e)
File "/var/task/lambda_function.py", line 355, in handle
home_assistant_object = HomeAssistant()
File "/var/task/lambda_function.py", line 55, in __init__
self.get_ha_state()
File "/var/task/lambda_function.py", line 97, in get_ha_state
errors = self._check_response_errors(response)
File "/var/task/lambda_function.py", line 70, in _check_response_errors
logger.error("404 Error", response.data)
File "/var/lang/lib/python3.7/logging/__init__.py", line 1407, in error
self._log(ERROR, msg, args, **kwargs)
File "/var/lang/lib/python3.7/logging/__init__.py", line 1514, in _log
self.handle(record)
File "/var/lang/lib/python3.7/logging/__init__.py", line 1524, in handle
self.callHandlers(record)
File "/var/lang/lib/python3.7/logging/__init__.py", line 1586, in callHandlers
hdlr.handle(record)
File "/var/lang/lib/python3.7/logging/__init__.py", line 894, in handle
self.emit(record)
File "/var/runtime/bootstrap.py", line 243, in emit
msg = self.format(record)
File "/var/lang/lib/python3.7/logging/__init__.py", line 869, in format
return fmt.format(record)
File "/var/lang/lib/python3.7/logging/__init__.py", line 608, in format
record.message = record.getMessage()
File "/var/lang/lib/python3.7/logging/__init__.py", line 369, in getMessage
msg = msg % self.args
It turned out I've forgotten to restart HA after defining the input_text. Could this be considered a possible common error? Would it be possible to alter the initial test to become more robust?
I've seen that there is an entry in the language dictionary to cover this error, but it didn't kick in: ERROR_404