jpmens/homie-ota

unexpected behaviour/errors

Closed this issue · 0 comments

Was working well until I upgraded Beaglebone Black Debian image to latest and reinstalled Mosquitto and homie-ota. (see 1st screenshot below)

It was a long time ago I installed this originally (using up to homie v2.0) - should it all still work? Likely I've done something daft! python -V gives me Python 2.7.13

There's an erroneous 'b' appearing all over the place. I've done a bit of hunting around based on the errors produced but haven't fixed/found the concrete issue.

Seeing some errors when stopping the service.. (see code below)
AND
Another error when attempting a firmware upload.. (see 2nd screenshot below)

Thanks Rob

`May 23 20:07:15 beaglebone python[3059]: File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict

May 23 20:07:15 beaglebone python[3059]: yield from chunks

May 23 20:07:15 beaglebone python[3059]: File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict

May 23 20:07:15 beaglebone python[3059]: yield from chunks

May 23 20:07:15 beaglebone python[3059]: File "/usr/lib/python3.5/json/encoder.py", line 436, in _iterencode

May 23 20:07:15 beaglebone python[3059]: o = _default(o)

May 23 20:07:15 beaglebone python[3059]: File "/usr/lib/python3.5/json/encoder.py", line 179, in default

May 23 20:07:15 beaglebone python[3059]: raise TypeError(repr(o) + " is not JSON serializable")

May 23 20:07:15 beaglebone python[3059]: TypeError: b'c' is not JSON serializable
`

image

And

image