doudz / homeassistant-zigate

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

"Error: 500 Internal Server Error" Since last update via Hacs #88

Closed medaemon closed 4 years ago

medaemon commented 4 years ago

Hello,

I have updated today the zigate component from HACS but I now have the follwoing error message in the Zigate Page :

Error: 500 Internal Server Error
Sorry, the requested URL 'http://localhost:9998/' caused an error:

Internal Server Error

I have double check my config yaml :

zigate:
  host: 192.168.1.99:9999
  admin_panel: true

(I have a wifi zigate, zigate is on 3.1a firmware)

Any help on where to check, I have no idea from where the localhost:9998 comes from perhaps py code of the component...

image

medaemon commented 4 years ago

Hello doudz, I saw your very quick fix, but unfortunatly it does not seems to fix my issue I still have the same issue. I have first Upgraded with the version of fix, same behavior. As it does not changes I reinstall completely, same behavior.

doudz commented 4 years ago

Did you try to push CTRL+F5

pdecat commented 4 years ago

Same issue here, will test the fix.

medaemon commented 4 years ago

Yes, I have refreshed with Ctrl+F5 several times and even test on another browser (sometime caches does not help ^^)

pdecat commented 4 years ago

Still the same issue:

<zigate.core.ZiGate object at 0x7fe6d5ca4ad0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 3650, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/zigate/adminpanel/__init__.py", line 55, in index
    'model': zigate_instance.model
  File "/usr/local/lib/python3.7/site-packages/zigate/core.py", line 219, in model
    if self.connection.vid_pid() == (0x0403, 0x6001):
  File "/usr/local/lib/python3.7/site-packages/zigate/transport.py", line 210, in vid_pid
    port = list(serial.tools.list_ports.grep(self.serial.port))[0]
IndexError: list index out of range
<zigate.core.ZiGate object at 0x7fe6d5ca4ad0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 3650, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/zigate/adminpanel/__init__.py", line 55, in index
    'model': zigate_instance.model
  File "/usr/local/lib/python3.7/site-packages/zigate/core.py", line 219, in model
    if self.connection.vid_pid() == (0x0403, 0x6001):
  File "/usr/local/lib/python3.7/site-packages/zigate/transport.py", line 210, in vid_pid
    port = list(serial.tools.list_ports.grep(self.serial.port))[0]
IndexError: list index out of range

Pressing Ctrl-Shift-F5 does not help either.

Note: it's only the admin panel that is broken, I used to have the old custom_panel until now. Controlling zigbee devices works fine.

doudz commented 4 years ago

Ok I see. Thanks for traceback

medaemon commented 4 years ago

I'm probably unlucky but does not change the status for me... Can I help you with some traces ? (don't know how to provide you the same traceback as pdecat did)

pdecat commented 4 years ago

Fixed the issue for me, thanks @doudz!

image