core: No error code thrown by REST
The problem
Sensor throws error in log but don’t leave any error details to help debug:
Logger: homeassistant.components.rest.data
Source: components/rest/data.py:74
Integration: RESTful (documentation, issues)
First occurred: 06:29:46 (2 occurrences)
Last logged: 09:10:17
Error fetching data: https://xxx/whatsmyip.php failed with
Webserver is available and working - it’s occasional but it’s not matter of bugreport
What version of Home Assistant Core has the issue?
core-2022.8.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
REST sensor
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sensor.rest/
Diagnostics information
No response
Example YAML snippet
sensor:
- platform: rest
resource: https://xxx/whatsmyip.php
name: Own external IP
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (10 by maintainers)
I wrote this code so thats why I can be sure what’s there 😉 Matter of fact is not how to get my IP (I know other ways) - it’s the fact I get error and can’t further debug why it’s shown, so there’s bug in code. 😃