-
Notifications
You must be signed in to change notification settings - Fork 72
thin-edge.io does not handle mosquitto bridge status 1/0 status correctly #3488
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtheme:awsTheme: AWS cloud related topicsTheme: AWS cloud related topicstheme:mqttTheme: mqtt and mosquitto related topicsTheme: mqtt and mosquitto related topics
Milestone
Description
Describe the bug
The following local MQTT messages were observed from the mosquitto bridge connection to c8y (where the bridge is down).
[c8y/s/us] 102,TST_glance_nullary_function:device:main:service:mosquitto-c8y-bridge,service,mosquitto-c8y-bridge,down
[te/device/main/service/mosquitto-c8y-bridge/status/health] 0
[te/errors] invalid type: integer `0`, expected a map at line 1 column 1
The above messages look like there is an error when there is not, as mosquitto can only send either a 1 or 0 for the bridge status, then thin-edge.io should not treat this as an error.
To Reproduce
It was observed whilst testing an AWS system test, however I don't believe it will be difficult to spot the parsing error in the code.
Expected behavior
Screenshots
Environment (please complete the following information):
| Property | Value |
|---|---|
| OS [incl. version] | Debian GNU/Linux 12 (bookworm) |
| Hardware [incl. revision] | unknown |
| System-Architecture | Linux b7ddf1fe142a 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Sat Jul 6 02:50:39 UTC 2024 aarch64 GNU/Linux |
| thin-edge.io version | tedge 1.4.3~229+g0aaa4d8 |
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtheme:awsTheme: AWS cloud related topicsTheme: AWS cloud related topicstheme:mqttTheme: mqtt and mosquitto related topicsTheme: mqtt and mosquitto related topics