jeroenterheerdt / HAsmartirrigation

Smart Irrigation custom component for Home Assistant
MIT License
324 stars 49 forks source link

Unable to Download Diagnostics log #392

Open jsbowling42 opened 3 weeks ago

jsbowling42 commented 3 weeks ago

What happened?

When trying to download the Diagnostics file nothing seems to happen. I've tried Chrome and Firefox Browsers.

How to reproduce

go to Settings>Devices&Services>Integrations>Smart Irrigation, Click the 'three vertical dots' menu and select 'download diagnostics

Relevant log output

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:307
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:49:37 PM (7 occurrences)
Last logged: 1:19:43 PM

[547166376080] Error handling message: expected str for dictionary value @ data['path']. Got None (invalid_format) Seth from 192.168.1.100 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36)
[546794290864] Error handling message: expected str for dictionary value @ data['path']. Got None (invalid_format) Seth from 192.168.1.188 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36)
[547315960704] Error handling message: expected str for dictionary value @ data['path']. Got None (invalid_format) Seth from 192.168.1.100 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36)
[546796803488] Error handling message: expected str for dictionary value @ data['path']. Got None (invalid_format) Seth from 192.168.1.100 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0)

Which version are you running?

2024.6.1

Diagnostics file

Additional information

No response

jeroenterheerdt commented 3 weeks ago

this is not operational for me. can you enable debug logging for smart irrigation?

jsbowling42 commented 3 weeks ago

home-assistant_smart_irrigation_2024-06-07T12-57-03.661Z.log so i enabled debug logging then tried to download the diagnostics file again, then turned off debug which created this file.

jeroenterheerdt commented 3 weeks ago

not sure what is causing this. It doesn't seem like the integration was installed at all since there is no path for the storage file. This means even the basic set up of the integration has failed. Can you try uninstalling, and reinstalling while monitoring the logs for anything that tells you the irrigation was not set up at all?

jsbowling42 commented 3 weeks ago

Sure I can try that. What’s interesting is that I see the bucket values decreasing and data in the ui like it’s all working. I’ll report back after the reinstall. Also #393 mentioned not being able to download the diagnostics too.

regda1986 commented 3 weeks ago

Same here.

jeroenterheerdt commented 3 weeks ago

I am not sure what is causing this, at all. I am not seeing this on my installs. There must be something in one of the many logs that can tell us what went wrong

david-j-duran commented 2 weeks ago

I am also unable to download the diagnostic file.

I get a persistent notification:

Login attempt failed
Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). See the log for details.

And this in the logs. 2024-06-15 11:36:37.324 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:36:41.005 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:37:10.963 ERROR (MainTnThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:38:07.166 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15)

david-j-duran commented 2 weeks ago

FWIW - was able to download from the "Device Info" section here, but still getting error following the instructions to do so from the Integration "..." menu.

image
jeroenterheerdt commented 2 weeks ago

I am also unable to download the diagnostic file.

I get a persistent notification:

Login attempt failed
Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). See the log for details.

And this in the logs. 2024-06-15 11:36:37.324 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:36:41.005 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:37:10.963 ERROR (MainTnThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15) 2024-06-15 11:38:07.166 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from fe80::44a:9fde:d7ce:a0d (fe80::44a:9fde:d7ce:a0d). Requested URL: '/api/diagnostics/config_entry/f8a72475389b606bc1dec281f0ae6495'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15)

I don't think this is related.