Malformed JSON Error

Posted on
  • So I'm getting this error message in both the app loader and in gadget bridge: "malformed JSON from Bangle.js: No value for t."

    I can't reconnect to the app loader to erase all apps and start over, so I'm uncertain of what to do here.

    Also, when did the Bangle develop the capacity to assign value to things like tea and coffee? 🤣

    Any help is appreciated!


    1 Attachment

    • Screenshot_2021-11-17-09-21-47-563.png
  • That'll be an error that Bangle.js is reporting I think.

    But I guess the question is...

    I can't reconnect to the app loader to erase all apps and start over, so I'm uncertain of what to do here.

    Why? What happens? If you can't connect to the app loader it's probably a sign that something is broken, which could explain this problem

  • That doesn't sound fun.

    It says Device connection failed: invalid JSON

  • Ok, please could you try connecting with the Web IDE? At least with that you might be able to see what's being output to the console that is causing issues

  • What worked for me eventually:

    1. cleared Gadget Bridge cache/data in android - settings - apps
    2. ensured it wasn't paired/hooked to any other device already, namely my laptop in the other room.
  • Interested to find this as I was searching for a similar Gadgetbridge error connecting to the Bangle.js2. Mine says 'Malformed JSON from Bangle.js: No value for status'. This appears on connection.
    My firmware and Gadgetbridge version are up to date, and message connection works OK (I can run most of the tests for connecting, e.g. call and message handling). But the data viewing options show now data (though the watch has plenty!) and the live measurement (heart icon) just spins the wheel with 'MEASURING' message.

    I've tried suggestions above, but all the resets and reloads don't seem to do anything.

    Grateful for any ideas! Thanks.

  • I got both messages from time to time (not always, but frequently).

  • Hi - it looks like the No value for status error is from the recent GPS addition to Gadgetbridge - unfortunately it looks like the Gadgetbridge GPS functionality really wasn't tested at all well before it went in :(

    @halemmerich had actually done a fix for this which I wasn't merging because it contained a few other things I wanted to look at in more detail, but I've just merged it and pushed it live, so if you update android now I think that one is fixed.

    and the live measurement (heart icon) just spins the wheel with 'MEASURING' message.

    I just checked and the live measurements weren't implemented, but I've just added that too sp hopefully it'll work ok now.

  • Wow! Thanks for the quick response and extra effort. Will try this later.
    Just to be clear: I think you mean update the 'android' app on bangle.js? I guess when I do a general update this will happen.
    Or should I be updating the Gadgetbridge software? Apologies for newbie questions!

  • Ok, so tried the update of Android app on my js2. I'm now error free in terms of connection and everything Gadgetbridge does, but I can't see any data in the app or get the live measuring to work.
    It looks like no data syncing is happening, is there a way to trigger this?
    Have done all other updates: reinstalled Gadgetbridge from F-droid update all bangle.js2 apps, restarted phone and watch.
    I've tried this on a Huawei phone and Samsung tablet.
    Am i missing something or still a glitch in the software?

    Thanks.

  • Am i missing something or still a glitch in the software?

    Ok, sorry - yes, it looks like there's still some problem in the Gadgetbridge Android app :(

    So - you can go 'Activity and Sleep', then scroll right over and click on 'Live Activity' and this then works (albeit the default update interval for 'live' updates is really slow). I have fixed this for the next Gadgetbridge release though.

    However looking at the code in Gadgetbridge, it seems someone added that live HRM measurement icon in a really broken way - it has never worked for Bangle.js (or I imagine most other watches) since the icon was added.

    I was going to try and implement it, but it's broken enough that after you click the button there's no way to even turn the HRM off when you close the window... so for now I have just removed the icon.

  • Thanks. I can certainly see some data loading intermittently but not getting a lot from it!
    I've since realised the app loader allows manual retrieval of logs so that's probably my best bet. Following the general rule to get the raw data into a spreadsheet as fast as possible!
    Maybe at some point ill write some js to retrieve the files automatically. :-)
    Thanks again for your help, really lovely system and community building round this!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Malformed JSON Error

Posted by Avatar for PlaidFox @PlaidFox

Actions