core: Waze throws unhandled exception upon startup

Home Assistant release with the issue:

0.78

Last working Home Assistant release (if known):

Unknown

Operating environment (Hass.io/Docker/Windows/etc.):

Docker

Component/platform:

https://www.home-assistant.io/components/sensor.waze_travel_time/

Description of problem:

Upon startup, the Waze Travel Time sensor throws an unhandled exception.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

sensor:
  - platform: waze_travel_time
    name: Travel Time
    origin: device_tracker.my_iphone
    destination: zone.home
    region: US

Traceback (if applicable):

018-09-17 14:35:22 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/sensor/waze_travel_time.py", line 74, in <lambda>
    EVENT_HOMEASSISTANT_START, lambda _: sensor.update())
  File "/usr/src/app/homeassistant/components/sensor/waze_travel_time.py", line 204, in update
    routes = params.calc_all_routes_info(real_time=self._realtime)
  File "/usr/local/lib/python3.6/site-packages/WazeRouteCalculator/WazeRouteCalculator.py", line 145, in calc_all_routes_info
    routes = self.get_route(npaths, time_delta)
  File "/usr/local/lib/python3.6/site-packages/WazeRouteCalculator/WazeRouteCalculator.py", line 95, in get_route
    response_json = response.json()
  File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 896, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.6/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/local/lib/python3.6/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 15
  • Comments: 27 (13 by maintainers)

Most upvoted comments

Please open a new issue, fill in the issue template, and post the stacktrace rather than screen shots of the log. Supplementary screen shots that explain the problem are of course good too.

done that https://github.com/home-assistant/home-assistant/issues/20953

Please open a new issue, fill in the issue template, and post the stacktrace rather than screen shots of the log. Supplementary screen shots that explain the problem are of course good too.

Comments as the one marked doesn’t help solve the issue since no extra info is provided. Please instead indicate that you’re affected by reacting to original post with 👍 and click the subscribe button to be notified about updates.