doudz / homeassistant-zigate

zigate component for Home Assistant
MIT License
48 stars 13 forks source link

500 Internal Server Error #129

Closed vini59fr closed 4 years ago

vini59fr commented 4 years ago

Hello

Zigate Admin bug chez moi sur certaines fonction (quasiement tous les boutons d'acrion : Permit Join, Led ON/OFF, Discover) : 500 Internal Server Error 2020-08-13 17_24_44-Window

2020-08-13 17_25_01-Window

Home Assistant 0.114.0 host_os | HassOS 4.12 Zigate à jour : 540958e

vini59fr commented 4 years ago

En log ca donne ca :

Error handling request 17:34:15 – custom_components/zigate/adminpanel.py (ERROR)

Logger: aiohttp.server Source: custom_components/zigate/adminpanel.py:35 First occurred: 17:34:15 (1 occurrences) Last logged: 17:34:15

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 964, in _create_direct_connection hosts = await asyncio.shield(self._resolve_host( File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 829, in _resolve_host addrs = await \ File "/usr/local/lib/python3.8/site-packages/aiohttp/resolver.py", line 29, in resolve infos = await self._loop.getaddrinfo( File "/usr/local/lib/python3.8/asyncio/base_events.py", line 825, in getaddrinfo return await self.run_in_executor( File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name does not resolve

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle result = await result File "/config/custom_components/zigate/adminpanel.py", line 20, in get return await self._handle_request("GET", request, requested_url) File "/config/custom_components/zigate/adminpanel.py", line 35, in _handle_request async with aiohttp.request( File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1051, in aenter self._resp = await self._coro File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 480, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 523, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 858, in _createconnection , proto = await self._create_direct_connection( File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 971, in _create_direct_connection raise ClientConnectorError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host homeassistant.local:8123 ssl:default [Name does not resolve]

doudz commented 4 years ago

il est peut-être nécessaire de définir l'URL externe et interne dans Configuration => Général

vini59fr commented 4 years ago

il est peut-être nécessaire de définir l'URL externe et interne dans Configuration => Général

Bon, c'était bien ça le problème L'adresse de l'URL interne n'etait plus la bonne

Désolé pour l'ouverture d'une issue inutile