config.json
{
"url": "http://hassio.local:8123/api",
"bearer_token": "example QiLCJhbGciOiJIUzI1NiJ",
"debug": false,
"ssl_verify": true,
"ssl_client": []
}
Response:
{
"errorMessage": "HTTPConnectionPool(host='hassio.local', port=8123): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b49bb4c50>: Failed to establish a new connection: [Errno -2] Name or service not known',))",
"errorType": "ConnectionError",
"stackTrace": [
[
"/var/task/haaska.py",
111,
"event_handler",
"return ha.post('alexa/smart_home', event, wait=True)"
],
[
"/var/task/haaska.py",
65,
"post",
"timeout=(None, read_timeout))"
],
[
"/var/task/requests/sessions.py",
581,
"post",
"return self.request('POST', url, data=data, json=json, **kwargs)"
],
[
"/var/task/requests/sessions.py",
533,
"request",
"resp = self.send(prep, **send_kwargs)"
],
[
"/var/task/requests/sessions.py",
646,
"send",
"r = adapter.send(request, **kwargs)"
],
[
"/var/task/requests/adapters.py",
516,
"send",
"raise ConnectionError(e, request=request)"
]
]
}
Request ID:
"c744a72a-7459-4fd7-ad92-ccd9524b27b9"
Function Logs:
START RequestId: c744a72a-7459-4fd7-ad92-ccd9524b27b9 Version: $LATEST
HTTPConnectionPool(host='hassio.local', port=8123): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b49bb4c50>: Failed to establish a new connection: [Errno -2] Name or service not known',)): ConnectionError
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 65, in post
timeout=(None, read_timeout))
File "/var/task/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/var/task/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/var/task/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/var/task/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='hassio.local', port=8123): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b49bb4c50>: Failed to establish a new connection: [Errno -2] Name or service not known',))
END RequestId: c744a72a-7459-4fd7-ad92-ccd9524b27b9
REPORT RequestId: c744a72a-7459-4fd7-ad92-ccd9524b27b9 Duration: 216.82 ms Billed Duration: 300 ms Memory Size: 128 MB Max Memory Used: 63 MB
config.json
{
"url": "http://my.duckdns.org/api",
"bearer_token": "example QiLCJhbGciOiJIUzI1NiJ",
"debug": false,
"ssl_verify": true,
"ssl_client": []
}
Response:
{
"errorMessage": "2019-03-16T00:50:12.736Z 29f3eb20-7820-4a71-825f-9c340566f10a Task timed out after 3.00 seconds"
}
Request ID:
"29f3eb20-7820-4a71-825f-9c340566f10a"
Function Logs:
START RequestId: 29f3eb20-7820-4a71-825f-9c340566f10a Version: $LATEST
END RequestId: 29f3eb20-7820-4a71-825f-9c340566f10a
REPORT RequestId: 29f3eb20-7820-4a71-825f-9c340566f10a Duration: 3003.15 ms Billed Duration: 3000 ms Memory Size: 128 MB Max Memory Used: 64 MB
2019-03-16T00:50:12.736Z 29f3eb20-7820-4a71-825f-9c340566f10a Task timed out after 3.00 seconds