Test haaska error

I’m trying to integrate alexa, i have foult test, can you help me?

Response:
{
  "errorMessage": "401 Client Error: Unauthorized for url: https://<redacted>.duckdns.org:8123/api/alexa/smart_home",
  "errorType": "HTTPError",
  "requestId": "e615b76a-0894-4b35-85c3-7c612e0dd376",
  "stackTrace": [
    "  File \"/var/task/haaska.py\", line 111, in event_handler\n    return ha.post('alexa/smart_home', event, wait=True)\n",
    "  File \"/var/task/haaska.py\", line 66, in post\n    r.raise_for_status()\n",
    "  File \"/var/task/requests/models.py\", line 940, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\n"
  ]
}

Function Logs:
START RequestId: e615b76a-0894-4b35-85c3-7c612e0dd376 Version: $LATEST
[ERROR] HTTPError: 401 Client Error: Unauthorized for url: https://<redacted>.duckdns.org:8123/api/alexa/smart_home
Traceback (most recent call last):
  File "/var/task/haaska.py", line 111, in event_handler
    return ha.post('alexa/smart_home', event, wait=True)
  File "/var/task/haaska.py", line 66, in post
    r.raise_for_status()
  File "/var/task/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
END RequestId: e615b76a-0894-4b35-85c3-7c612e0dd376
REPORT RequestId: e615b76a-0894-4b35-85c3-7c612e0dd376	Duration: 453.04 ms	Billed Duration: 909 ms	Memory Size: 128 MB	Max Memory Used: 53 MB	Init Duration: 455.72 ms

Request ID: e615b76a-0894-4b35-85c3-7c612e0dd376

I have removed your DuckDNS domain from your log. It is not wise to share this.

Maybe not helping with the problem itself, but why don’t you use the official Alexa integration? Amazon Alexa Smart Home Skill - Home Assistant

1 Like