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

Trying to use api to send the RPC command and getting the server_side_rpc_handler error.[HELP]

Open Vaghulkumar95 opened this issue 6 months ago • 4 comments

Describe the issue Create description about your issue, and your actions to solve it. We are trying to change the value Feedback_Source_Select via the api https://thingsboard.cloud:443/api/plugins/rpc/twoway/5de2aaa0-4d90-11ef-847b-9766e2a793fa image Sometimes we are getting the 408 Timeout request image Sometimes we are getting the 409 Conflict After restarting thingsboard it is okay. image Can you please help us understand why we are unable to send RPC requests successfully?

Configuration (Attach your configuration file) Notate: Remove Access token from file if you want to attach a tb_gateway.yaml config.txt

Connector name (If you need help with some connector/converter): [e.g. MQTT Connector]

Error traceback (If it was raised):

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 652, in server_side_rpc_handler
device = ModbusConnector.__get_device_by_name(server_rpc_request[DEVICE_SECTION_PARAMETER],
File "/usr/local/lib/python3.10/site-packages/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 763, in __get_device_by_name
return tuple(filter(lambda slave: slave.device_name == device_name, devices))[0]

Versions (please complete the following information):

  • OS: [Debian 11]
  • Thingsboard IoT Gateway version [3.5.1]
  • Python version [Python 3.10.12]

Vaghulkumar95 avatar Aug 07 '24 11:08 Vaghulkumar95