by configuration key do you mean the URL in config.cfg?
Its always had it… I tried both HTTP and HTTPS. The long lived token has also been the same for 2 weeks.
I just tried it again and have the same errors in the log. Are you sure its actually reading the config.cfg?
timestamp,message
1751548842504,"INIT_START Runtime Version: python:3.8.v96 Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:d497dde01fa31f831f822d82b917a28bd4a9906f098d0866f36cd9589b2d9557
"
1751548843200,"START RequestId: 316ab68d-5b91-4c08-b99f-1fd94c57db9b Version: 2
"
1751548843367,"END RequestId: 316ab68d-5b91-4c08-b99f-1fd94c57db9b
"
1751548843367,"REPORT RequestId: 316ab68d-5b91-4c08-b99f-1fd94c57db9b Duration: 166.96 ms Billed Duration: 167 ms Memory Size: 512 MB Max Memory Used: 63 MB Init Duration: 694.98 ms
"
1751548843427,"START RequestId: 2b73771f-0a9b-4041-91cc-5105ce11ddcd Version: 2
"
1751548843450,"[ERROR] 2025-07-03T13:20:43.449Z 2b73771f-0a9b-4041-91cc-5105ce11ddcd Error fetching prompt from HA state: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/states/input_text.assistant_input (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8105016be0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
"
1751548843450,"[DEBUG] 2025-07-03T13:20:43.450Z 2b73771f-0a9b-4041-91cc-5105ce11ddcd Device: {'device_id': 'amzn1.ask.device.REDACTED,
'persistent_endpoint_id': None,
'supported_interfaces': {'alexa_advertisement': None,
'alexa_presentation_apl': {'runtime': {'max_version': '2024.3'}},
'alexa_presentation_aplt': None,
'alexa_presentation_html': None,
'app_link': None,
'audio_player': None,
'display': None,
'geolocation': None,
'navigation': None,
'video_app': None}}
"
1751548843452,"[DEBUG] 2025-07-03T13:20:43.452Z 2b73771f-0a9b-4041-91cc-5105ce11ddcd ha_dashboard_url: https://YOUR-HOME-ASSISTANT-EXTERNAL-URL/lovelace?kiosk
"
1751548843463,"END RequestId: 2b73771f-0a9b-4041-91cc-5105ce11ddcd
"
1751548843463,"REPORT RequestId: 2b73771f-0a9b-4041-91cc-5105ce11ddcd Duration: 36.60 ms Billed Duration: 37 ms Memory Size: 512 MB Max Memory Used: 63 MB
"
1751548857206,"START RequestId: 73133389-2801-465b-b28b-59ae725ee8e7 Version: 2
"
1751548857224,"[INFO] 2025-07-03T13:20:57.224Z 73133389-2801-465b-b28b-59ae725ee8e7 Query received from Alexa: turn on espresso machine
"
1751548857224,"[DEBUG] 2025-07-03T13:20:57.224Z 73133389-2801-465b-b28b-59ae725ee8e7 HA request url: https://YOUR-HOME-ASSISTANT-EXTERNAL-URL/api/conversation/process
"
1751548857224,"[DEBUG] 2025-07-03T13:20:57.224Z 73133389-2801-465b-b28b-59ae725ee8e7 HA request data: {'text': 'turn on espresso machine', 'language': 'pt-BR', 'agent_id': 'conversation.chatgpt'}
"
1751548857247,"[ERROR] 2025-07-03T13:20:57.230Z 73133389-2801-465b-b28b-59ae725ee8e7 Error processing response: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d832e0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Traceback (most recent call last):
File ""/var/task/urllib3/connection.py"", line 174, in _new_conn
conn = connection.create_connection(
File ""/var/task/urllib3/util/connection.py"", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File ""/var/lang/lib/python3.8/socket.py"", line 930, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/urllib3/connectionpool.py"", line 716, in urlopen
httplib_response = self._make_request(
File ""/var/task/urllib3/connectionpool.py"", line 404, in _make_request
self._validate_conn(conn)
File ""/var/task/urllib3/connectionpool.py"", line 1061, in _validate_conn
conn.connect()
File ""/var/task/urllib3/connection.py"", line 363, in connect
self.sock = conn = self._new_conn()
File ""/var/task/urllib3/connection.py"", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8102d832e0>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/requests/adapters.py"", line 439, in send
resp = conn.urlopen(
File ""/var/task/urllib3/connectionpool.py"", line 802, in urlopen
retries = retries.increment(
File ""/var/task/urllib3/util/retry.py"", line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d832e0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/lambda_function.py"", line 202, in process_conversation
response = requests.post(ha_api_url, headers=headers, json=data, timeout=7)
File ""/var/task/requests/api.py"", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File ""/var/task/requests/api.py"", line 61, in request
return session.request(method=method, url=url, **kwargs)
File ""/var/task/requests/sessions.py"", line 542, in request
resp = self.send(prep, **send_kwargs)
File ""/var/task/requests/sessions.py"", line 655, 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: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d832e0>: Failed to establish a new connection: [Errno -2] Name or service not known'))"
1751548857247,"[INFO] 2025-07-03T13:20:57.247Z 73133389-2801-465b-b28b-59ae725ee8e7 Response generated: Sorry, I couldn't process your request.
"
1751548857247,"[DEBUG] 2025-07-03T13:20:57.247Z 73133389-2801-465b-b28b-59ae725ee8e7 Ask for further commands enabled: True
"
1751548857249,"END RequestId: 73133389-2801-465b-b28b-59ae725ee8e7
"
1751548857249,"REPORT RequestId: 73133389-2801-465b-b28b-59ae725ee8e7 Duration: 42.45 ms Billed Duration: 43 ms Memory Size: 512 MB Max Memory Used: 63 MB
"
1751548879491,"START RequestId: 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Version: 2
"
1751548879494,"[INFO] 2025-07-03T13:21:19.494Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Query received from Alexa: turn on playroom shade group
"
1751548879494,"[DEBUG] 2025-07-03T13:21:19.494Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 HA request url: https://YOUR-HOME-ASSISTANT-EXTERNAL-URL/api/conversation/process
"
1751548879494,"[DEBUG] 2025-07-03T13:21:19.494Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 HA request data: {'text': 'turn on playroom shade group', 'language': 'pt-BR', 'agent_id': 'conversation.chatgpt'}
"
1751548879499,"[ERROR] 2025-07-03T13:21:19.499Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Error processing response: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d83a00>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Traceback (most recent call last):
File ""/var/task/urllib3/connection.py"", line 174, in _new_conn
conn = connection.create_connection(
File ""/var/task/urllib3/util/connection.py"", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File ""/var/lang/lib/python3.8/socket.py"", line 930, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/urllib3/connectionpool.py"", line 716, in urlopen
httplib_response = self._make_request(
File ""/var/task/urllib3/connectionpool.py"", line 404, in _make_request
self._validate_conn(conn)
File ""/var/task/urllib3/connectionpool.py"", line 1061, in _validate_conn
conn.connect()
File ""/var/task/urllib3/connection.py"", line 363, in connect
self.sock = conn = self._new_conn()
File ""/var/task/urllib3/connection.py"", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8102d83a00>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/requests/adapters.py"", line 439, in send
resp = conn.urlopen(
File ""/var/task/urllib3/connectionpool.py"", line 802, in urlopen
retries = retries.increment(
File ""/var/task/urllib3/util/retry.py"", line 594, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d83a00>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ""/var/task/lambda_function.py"", line 202, in process_conversation
response = requests.post(ha_api_url, headers=headers, json=data, timeout=7)
File ""/var/task/requests/api.py"", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File ""/var/task/requests/api.py"", line 61, in request
return session.request(method=method, url=url, **kwargs)
File ""/var/task/requests/sessions.py"", line 542, in request
resp = self.send(prep, **send_kwargs)
File ""/var/task/requests/sessions.py"", line 655, 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: HTTPSConnectionPool(host='your-home-assistant-external-url', port=443): Max retries exceeded with url: /api/conversation/process (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8102d83a00>: Failed to establish a new connection: [Errno -2] Name or service not known'))"
1751548879499,"[INFO] 2025-07-03T13:21:19.499Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Response generated: Sorry, I couldn't process your request.
"
1751548879499,"[DEBUG] 2025-07-03T13:21:19.499Z 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Ask for further commands enabled: True
"
1751548879504,"END RequestId: 63ae5b75-4612-40b1-a7d1-5c9045acfcc8
"
1751548879504,"REPORT RequestId: 63ae5b75-4612-40b1-a7d1-5c9045acfcc8 Duration: 12.42 ms Billed Duration: 13 ms Memory Size: 512 MB Max Memory Used: 63 MB
"