thingsboard-gateway icon indicating copy to clipboard operation
thingsboard-gateway copied to clipboard

[BUG] BacNet connector broken in version 3.5.2, 3.5.3, 3.5.3.1

Open jurkov opened this issue 4 months ago • 2 comments

Describe the bug Starting a newly created iot-gateway with docker or native python throws the same error since version 3.5.2. Version 3.5.1 works fine.

Connector name (If bug in the some connector): BacNET Connector

Error traceback (If available):

  File "C:\projects\thingsboard-gateway-native\.venv\Lib\site-packages\thingsboard_gateway\connectors\bacnet\bacnet_uplink_converter.py", line 53, in convert
    count=len(dict_result["attributes"]))
              ~~~~~~~~~~~^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

Versions (please complete the following information):

  • OS: Windows 11 or Docker Image OS
  • Thingsboard IoT Gateway version 3.5.2, 3.5.3, 3.5.3.1
  • Python version 3.11, Python version 3.12 (installed pyasyncore by hand)

jurkov avatar Oct 04 '24 09:10 jurkov