auchter / haaska

Home Assistant Alexa Skill Adapter
263 stars 61 forks source link

JSONDecodeError #111

Closed mnl1121 closed 6 years ago

mnl1121 commented 6 years ago

I followed the Readme, but am getting this JSONDecodeError when running the test. Any ideas?

{
  "errorMessage": "Expecting value: line 4 column 17 (char 105)",
  "errorType": "JSONDecodeError",
  "stackTrace": [
    [
      "/var/task/haaska.py",
      655,
      "event_handler",
      "config = Configuration('config.json')"
    ],
    [
      "/var/task/haaska.py",
      617,
      "__init__",
      "self._json = json.load(f)"
    ],
    [
      "/var/lang/lib/python3.6/json/__init__.py",
      299,
      "load",
      "parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)"
    ],
    [
      "/var/lang/lib/python3.6/json/__init__.py",
      354,
      "loads",
      "return _default_decoder.decode(s)"
    ],
    [
      "/var/lang/lib/python3.6/json/decoder.py",
      339,
      "decode",
      "obj, end = self.raw_decode(s, idx=_w(s, 0).end())"
    ],
    [
      "/var/lang/lib/python3.6/json/decoder.py",
      357,
      "raw_decode",
      "raise JSONDecodeError(\"Expecting value\", s, err.value) from None"
    ]
  ]
}
mnl1121 commented 6 years ago

I fixed it. Details are here: https://community.home-assistant.io/t/haaska-test-error/42807/8