Haaska test failed, the code is not reading well my host?

Here’s the output:

{
  "errorMessage": "HTTPSConnectionPool(host='myhost.to', port=443): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5523b95c10>: Failed to establish a new connection: [Errno -2] Name or service not known'))",
  "errorType": "ConnectionError",
  "requestId": "7ad2f359-5e7d-44d2-94554-39d6b77bdbbe",
  "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 63, in post\n    r = self.session.post(self.build_url(endpoint),\n",
    "  File \"/var/task/requests/sessions.py\", line 581, in post\n    return self.request('POST', url, data=data, json=json, **kwargs)\n",
    "  File \"/var/task/requests/sessions.py\", line 533, in request\n    resp = self.send(prep, **send_kwargs)\n",
    "  File \"/var/task/requests/sessions.py\", line 646, in send\n    r = adapter.send(request, **kwargs)\n",
    "  File \"/var/task/requests/adapters.py\", line 516, in send\n    raise ConnectionError(e, request=request)\n"
  ]
}

I think I did the right procedure, but can’t figure it out why the code read .to as my domain while the real one is .top

In your config.json what is the "url" set to?
If it is set to "https://myhost.top:443/api" then I would think it should work.

1 Like

It worked, thank you so much! :slight_smile: