Haaska test failed. Using localhost?

Here’s the output

{
  "errorMessage": "HTTPConnectionPool(host='localhost', port=8123): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55e3f38908>: Failed to establish a new connection: [Errno 111] Connection refused',))",
  "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)"
    ]
  ]
} 

I can’t figure out why the host is localhost. I have the config.json file set up, but it seems to be ignoring it because I have no idea where localhost is coming from.

4 Likes

I’m having exactly the same issue.

I was seeing the same issue but next to the action where you upload the zip file the deploy button was a new colour (orange ish) pressed this and deployed the changes and the test passed and Im all working now.

2 Likes

Thanks for the reply! This was the issue. I also copied the token wrong, but that was a separate issue.