sindrebroch / ha-magicmirror

Custom HomeAssistant-integration for MagicMirror
Apache License 2.0
14 stars 0 forks source link

<ClientResponse(http://XXX:8080/api/updateAvailable) [404 Not Found]> #21

Open nfxhk opened 1 year ago

nfxhk commented 1 year ago

Beta 5

Describe the bug

After installing and setting up the integration I get this error on initialise: <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]>

MMM-Remote is installed and working correctly. API test is successful

Debug log

Log Details (ERROR)

This error originated from a custom integration. Logger: custom_components.magicmirror Source: custom_components/magicmirror/api.py:85 Integration: Magic Mirror (documentation, issues) First occurred: 13:12:40 (4 occurrences) Last logged: 13:13:14

Unexpected error fetching magicmirror data: Response not 200 OK <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]> <CIMultiDictProxy('Access-Control-Allow-Origin': '', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '0', 'Content-Security-Policy': "default-src 'none'", 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '158', 'Date': 'Mon, 17 Jul 2023 04:12:40 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')> Unexpected error fetching magicmirror data: Response not 200 OK <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]> <CIMultiDictProxy('Access-Control-Allow-Origin': '', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '0', 'Content-Security-Policy': "default-src 'none'", 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '158', 'Date': 'Mon, 17 Jul 2023 04:12:52 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')> Unexpected error fetching magicmirror data: Response not 200 OK <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]> <CIMultiDictProxy('Access-Control-Allow-Origin': '', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '0', 'Content-Security-Policy': "default-src 'none'", 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '158', 'Date': 'Mon, 17 Jul 2023 04:13:02 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')> Unexpected error fetching magicmirror data: Response not 200 OK <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]> <CIMultiDictProxy('Access-Control-Allow-Origin': '', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '0', 'Content-Security-Policy': "default-src 'none'", 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '158', 'Date': 'Mon, 17 Jul 2023 04:13:14 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')> Traceback (most recent call last): File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() File "/home/homeassistant/.homeassistant/custom_components/magicmirror/coordinator.py", line 61, in _async_update_data await self.api.update_available() File "/home/homeassistant/.homeassistant/custom_components/magicmirror/api.py", line 156, in update_available return ModuleUpdateResponses.from_dict(await self.get(API_UPDATE_AVAILABLE)) File "/home/homeassistant/.homeassistant/custom_components/magicmirror/api.py", line 108, in get return await self.handle_request(get) File "/home/homeassistant/.homeassistant/custom_components/magicmirror/api.py", line 85, in handle_request raise Exception(f"Response not 200 OK {resp}") Exception: Response not 200 OK <ClientResponse(http://homepi.local:8080/api/updateAvailable) [404 Not Found]> <CIMultiDictProxy('Access-Control-Allow-Origin': '*', 'Referrer-Policy': 'no-referrer', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-DNS-Prefetch-Control': 'off', 'X-Download-Options': 'noopen', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-XSS-Protection': '0', 'Content-Security-Policy': "default-src 'none'", 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '158', 'Date': 'Mon, 17 Jul 2023 04:12:40 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')>