Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Rules for chain return data problem #43

Open
WingedKitten opened this issue Mar 1, 2023 · 5 comments
Open

[Bug] Rules for chain return data problem #43

WingedKitten opened this issue Mar 1, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@WingedKitten
Copy link

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 WingedKitten added the bug Something isn't working label Mar 1, 2023
@WingedKitten
Copy link
Author

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

@WingedKitten
Copy link
Author

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

@WingedKitten
Copy link
Author

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

@volodymyr-babak
Copy link
Collaborator

@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?

@WingedKitten
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants