I looked at the issue that guys are having with the latest build. When the catalogue is downloaded and parsed the "id" is now being set to a string when it was an int before. This is causing the match when sending to device to fail since it's expecting an int. It's like 97 of device.py that it's failing due to it. My stack trace is below.
Loading config from /Users/bradmiller/.ezbeq/ezbeq.yml
2021-04-02 22:26:20,130 - MainThread - twisted - INFO - __init__ - Serving ui from /Users/bradmiller/Projects/ezbeq/ui
2021-04-02 22:41:02,584 - PoolThread-twisted.internet.reactor-0 - ezbeq.minidsp - INFO - put - Sending 42a8aa6d988a10d32b5109ae15c283d989a72b2a
_2027 to Slot 2
2021-04-02 22:41:02,587 - PoolThread-twisted.internet.reactor-0 - app - ERROR - log_exception - Exception on /api/1/device/2 [PUT]
Traceback (most recent call last):
File "/Users/bradmiller/.local/share/virtualenvs/ezbeq-Ad3oW0vh/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/bradmiller/.local/share/virtualenvs/ezbeq-Ad3oW0vh/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/bradmiller/.local/share/virtualenvs/ezbeq-Ad3oW0vh/lib/python3.7/site-packages/flask_restful/__init__.py", line 468, in wrapper
resp = resource(*args, **kwargs)
File "/Users/bradmiller/.local/share/virtualenvs/ezbeq-Ad3oW0vh/lib/python3.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/Users/bradmiller/.local/share/virtualenvs/ezbeq-Ad3oW0vh/lib/python3.7/site-packages/flask_restful/__init__.py", line 583, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/bradmiller/Projects/ezbeq/ezbeq/device.py", line 97, in put
match: Catalogue = next(c for c in self.__catalogue_provider.catalogue if c.idx == int(id))
File "/Users/bradmiller/Projects/ezbeq/ezbeq/device.py", line 97, in <genexpr>
match: Catalogue = next(c for c in self.__catalogue_provider.catalogue if c.idx == int(id))
ValueError: invalid literal for int() with base 10: '42a8aa6d988a10d32b5109ae15c283d989a72b2a\n_2027'
Hi,
I looked at the issue that guys are having with the latest build. When the catalogue is downloaded and parsed the "id" is now being set to a string when it was an int before. This is causing the match when sending to device to fail since it's expecting an int. It's like 97 of device.py that it's failing due to it. My stack trace is below.