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

[Gadgbetbridge] Malformed JSON toast on updating apps #2496

Closed
halemmerich opened this issue Jan 13, 2023 · 2 comments
Closed

[Gadgbetbridge] Malformed JSON toast on updating apps #2496

halemmerich opened this issue Jan 13, 2023 · 2 comments
Labels
type-bug Something isn't working

Comments

@halemmerich
Copy link
Collaborator

halemmerich commented Jan 13, 2023

Affected hardware version

Bangle 2

Your firmware version

2v16.7

The bug

Every app update using GadgetBridge creates a toast message with this content:
"Malformed JSON from Bangle.js: No value for t". This is only a cosmetic problem, updates work fine otherwise.

It seems this is caused by GadgetBridge reading the app info file and getting a JSON-parseable Object back. This is then parsed as a GadgetBridge message and has no type key.

01-10 12:35:16.178  8237  8249 I nodomain.freeyourgadget.gadgetbridge.service.devices.banglejs.BangleJSDeviceSupport: UART RX LINE: {"id":"health","name":"Health","src":"health.app.js","icon":"health.img","version":"0.19","tags":"tool,system,health","files":"health.info,health.app.js,health.img,health.boot.js,health,}
01-10 12:35:16.182  8237  8249 I nodomain.freeyourgadget.gadgetbridge.service.devices.banglejs.BangleJSDeviceSupport: UART RX JSON parsed successfully
01-10 12:35:16.182  8237  8249 I nodomain.freeyourgadget.gadgetbridge.service.devices.banglejs.BangleJSDeviceSupport: UART RX JSON parse failure: No value for t
01-10 12:35:16.183  8237  8249 E nodomain.freeyourgadget.gadgetbridge.util.GB: Malformed JSON from Bangle.js: No value for t
01-10 12:35:16.191  8237  8237 I nodomain.freeyourgadget.gadgetbridge.devices.banglejs.AppsManagementActivity: WebView TX: .json"}

Installed apps

No response

@halemmerich halemmerich added the type-bug Something isn't working label Jan 13, 2023
@gfwilliams
Copy link
Member

Ok, thanks. I guess we could just ignore the JSON in Gadgetbridge if there's no 't' in it then (maybe just log it rather than a toast)

@gfwilliams
Copy link
Member

schklom pushed a commit to schklom/Gadgetbridge-osm that referenced this issue Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants