You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using ThingsBoard Gateway (version 3.5.1) and Thingsboard Server (version 3.7.0) and encountered an issue while trying to send an RPC request from the ThingsBoard Server to the Gateway using the Modbus connector. While testing:
The Modbus connector configuration worked successfully when testing the datapath. I was able to create a temp sensor device on the ThingsBoard Server, and telemetry data was published successfully.
However, when I attempted to send an RPC request from the server to the ThingsBoard Gateway, I encountered the below error.
Connector name (If bug in the some connector):
Modbus Connector
Error traceback:
The following error appeared in the logs:
Too big LOG message size to send (2203). Skipping... Too big LOG message size to send (1197). Skipping... 2024-12-18 15:01:30 - |ERROR| - [tb_logger.py] - tb_logger - exception - 127 - 'dict' object has no attribute 'split' Traceback (most recent call last): File "/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 644, in server_side_rpc_handler server_rpc_request['device'] = server_rpc_request['params'].split(' ')[0].split('=')[-1] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'dict' object has no attribute 'split' Too big LOG message size to send (1095). Skipping...
Steps to Reproduce
Configure the Modbus connector for a datapath.
a temp sensor device is created on the ThingsBoard Server.
Send an RPC request from the ThingsBoard Server to the ThingsBoard Gateway from MODBUS Connector RPC parameters.
Use the getValue and setValue parameters in the RPC message to read/write values.
Expected Behavior
The RPC request should be processed successfully, allowing me to read/write values using the Modbus connector.
Actual Behavior
The request fails with an AttributeError in the Modbus connector code in the Thingsboard gateway debug logs but got 200 success response on the UI. with {"success":false} . Versions (please complete the following information):
OS: Ubuntu 22.04
Thingsboard IoT Gateway version 3.5.1
Thingsboard Server version 3.7.1
Python version 3.10.12
Deployment method: Thingsboard Server and Thingsboard gateway deployed as k3s pods, and modbus simulation server is running on host as a python script. and used modbus default connector config.
please let me know what could be the cause ?
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using ThingsBoard Gateway (version 3.5.1) and Thingsboard Server (version 3.7.0) and encountered an issue while trying to send an RPC request from the ThingsBoard Server to the Gateway using the Modbus connector. While testing:
Connector name (If bug in the some connector):
Modbus Connector
Error traceback:
The following error appeared in the logs:
Steps to Reproduce
getValue
andsetValue
parameters in the RPC message to read/write values.Expected Behavior
The RPC request should be processed successfully, allowing me to read/write values using the Modbus connector.
Actual Behavior
The request fails with an AttributeError in the Modbus connector code in the Thingsboard gateway debug logs but got 200 success response on the UI. with {"success":false} .
Versions (please complete the following information):
please let me know what could be the cause ?
The text was updated successfully, but these errors were encountered: