thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 828 forks source link

[BUG] AttributeError: 'int' object has no attribute 'getName' #1504

Open jay-kobs opened 1 month ago

jay-kobs commented 1 month ago

Describe the bug As soon as I start the gateway I get the following error:

AttributeError: 'int' object has no attribute 'getName'

Error traceback (If available):

Cannot load GRPC connector! Error in on_connect callback: %s Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/thingsboard_gateway/gateway/tb_client.py", line 236, in _on_connect if result_code.getName().lower() == "connection rate exceeded": AttributeError: 'int' object has no attribute 'getName'

Versions (please complete the following information):

jay-kobs commented 1 month ago

@samson0v @imbeacon Any ideas? :)