8000 homeassistant.components.sensor.rest: Error fetching data: · Issue #3699 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

homeassistant.components.sensor.rest: Error fetching data: #3699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sumpsen opened this issue Oct 4, 2016 · 2 comments · Fixed by #3727
Closed

homeassistant.components.sensor.rest: Error fetching data: #3699

Sumpsen opened this issue Oct 4, 2016 · 2 comments · Fixed by #3727
Assignees

Comments

@Sumpsen
Copy link
Sumpsen commented Oct 4, 2016

Home Assistant release (hass --version):0.29.6

Python release (python3 --version):3.5.2

Getting the below error every 2-4 minutes and is filling up the logs.. Any ideas?

16-10-04 18:10:40 homeassistant.components.sensor.rest: Error fetching data: <PreparedRequest [GET]> 16-10-04 18:10:40 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/srv/hass/lib/python3.5/site-packages/homeassistant/core.py", line 1162, in job_handler func(*args) File "/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 229, in _update_entity_states entity.update_ha_state(True) File "/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 154, in update_ha_state self.update() File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/sensor/pi_hole.py", line 101, in update self._state = json.loads(self.rest.data) File "/usr/lib/python3.5/json/__init__.py", line 312, in loads s.__class__.__name__)) TypeError: the JSON object must be str, not 'NoneType'

@fabaff
Copy link
Member
fabaff commented Oct 5, 2016

Seems also related to the Pi-Hole sensor. Similar issue #3671.

@fabaff fabaff self-assigned this Oct 5, 2016
@fabaff
Copy link
Member
fabaff commented Oct 6, 2016

If the device running Pi-Hole is not available, I get this traceback.

Traceback (most recent call last):
  File "/home/fab/Documents/repos/home-assistant/homeassistant/core.py", line 1200, in job_handler
    func(*args)
  File "/home/fab/Documents/repos/home-assistant/homeassistant/helpers/entity_component.py", line 229, in _update_entity_states
    entity.update_ha_state(True)
  File "/home/fab/Documents/repos/home-assistant/homeassistant/helpers/entity.py", line 166, in update_ha_state
    self.update()
  File "/home/fab/Documents/repos/home-assistant/homeassistant/components/sensor/pi_hole.py", line 103, in update
    self._state = json.loads(self.rest.data)
  File "/usr/lib64/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'NoneType'

Is the device accessible by your Home Assistant instance?

balloob pushed a commit that referenced this issue Oct 8, 2016
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0