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

[Bug] Rules for chain return data problem

Open WingedKitten opened this issue 2 years ago • 5 comments

Describe the bug In the Rule Chain used in the originator telemetry data query, the returned data set with escape characters backslash, difficult to parse data into a json string; like this { "deviceName": "WarpKnittingMachine-1103", "deviceType": "default", "lowerClothMeter": "[{"ts":1677633586516,"value":41.3},{"ts":1677633571525,"value":41.2}]", "manufacturer": "[{"ts":1677633591508,"value":"KarlMayer"},{"ts":1677633586516,"value":"KarlMayer"}]", "ts": "1677633321540" }

or

{ "deviceName": "WarpKnittingMachine-46", "deviceType": "default", "manufacturer": ""General"", "ts": "1677634841111" }

Your Server Environment

  • ThingsBoard Version 3.4.3
  • ThingsBoard EDGE Version 3.4.3

Your Client Environment

Desktop (please complete the following information):

  • centos 7.9

image image

WingedKitten avatar Mar 01 '23 01:03 WingedKitten

If the data returned is a String type, the data will be additional have a double quotation marks image image

WingedKitten avatar Mar 01 '23 02:03 WingedKitten

Even the numeric types will also be combined with double quotation marks image image

WingedKitten avatar Mar 01 '23 08:03 WingedKitten

Article query multiple data in json string is normal, is my mistake. But a single data redundant double quotation marks D3F411DF-07DB-4670-A076-DCA942EB6C32

WingedKitten avatar Mar 05 '23 13:03 WingedKitten

@WingedKitten

rule chain functionality is the same on TB cloud and TB edge. There should be no difference is terms of processing messages on these two products. Could you please let me know if the same issue is reproducible on TB cloud? Or it's only reproducible on TB edge?

volodymyr-babak avatar Mar 21 '23 11:03 volodymyr-babak

I didn't pay attention to TB cloud, it was found on the edge, I need to compare. This is just a small problem. @volodymyr-babak But now I'm more concerned about the message queue accumulation

WingedKitten avatar Mar 21 '23 12:03 WingedKitten