Skip to content

thin-edge.io does not handle mosquitto bridge status 1/0 status correctly #3488

@reubenmiller

Description

@reubenmiller

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtheme:awsTheme: AWS cloud related topicstheme:mqttTheme: mqtt and mosquitto related topics

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions