Malformed JSON Error #6912
Replies: 1 comment
-
Posted at 2021-11-17 by @gfwilliams That'll be an error that Bangle.js is reporting I think. But I guess the question is...
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 Posted at 2021-11-17 by PlaidFox That doesn't sound fun. It says Device connection failed: invalid JSON Posted at 2021-11-18 by @gfwilliams 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 Posted at 2023-01-21 by user152412 What worked for me eventually:
Posted at 2023-01-24 by user152442 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. I've tried suggestions above, but all the resets and reloads don't seem to do anything. Grateful for any ideas! Thanks. Posted at 2023-01-25 by Hank I got both messages from time to time (not always, but frequently). Posted at 2023-01-25 by @gfwilliams Hi - it looks like the @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
I just checked and the live measurements weren't implemented, but I've just added that too sp hopefully it'll work ok now. Posted at 2023-01-25 by user152442 Wow! Thanks for the quick response and extra effort. Will try this later. Posted at 2023-01-25 by user152442 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. Thanks. Posted at 2023-01-26 by @gfwilliams
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. Posted at 2023-01-30 by user152442 Thanks. I can certainly see some data loading intermittently but not getting a lot from it! Posted at 2023-02-04 by user152442 . Posted at 2023-02-10 by Kenoubi I also get "no value for t" every time I update an app on any of my 3 Bangle.js 2's, and occasional random other invalid JSON popup errors. It doesn't seem to actually cause anything to not work, but it's annoying and I don't know how to make it go away. Posted at 2023-02-16 by youphyun Seems we have two issues in here:
I get the 2nd "Malformed JSON from Bangle.js: No value for status" too. Version Bangle.js Gadgetbridge 0.72.0-banglejs. As far as I can see it is rather a cosmetic issue. I hope it will be fixed by an app update. Posted at 2023-02-16 by @halemmerich I think the nightly version already does not have those anymore, at least I have not seen them for a while now. Nightlies can be found in the GadgetBridge nightly repo: https://freeyourgadget.codeberg.page/fdroid/repo/. This is of course for somewhat adventurous users :) Posted at 2023-02-22 by @gfwilliams Yes, sorry - there's been an issue with updating the Play Store app (Google changed policies so I have to bump the API level to put out an update now) so a new release of it has been delayed a bit, but hopefully I'll get it fixed soon Posted at 2023-02-22 by @thyttan Just a note to say this PR on codeberg exists, if it would be useful: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2924 Posted at 2023-02-22 by @gfwilliams Thanks! I never spotted that! I've just posted on that issue Posted at 2024-03-02 by user156090 Sorry to reopen this quite old post, but I do experience several, different malformed json errors, too quick for me to read the pop ups. Additionally (or corresponding???) there is some very strange behavior. No activity is downloaded except for the past few minutes but the app loops into "fetching activity" for ever (tried 24h...) and is unstoppable. Even if I try to force terminate the app, it keeps going. Need to restart the phone to end this, as soon as I open the app it starts over again. This is going on for a few months now, I was hoping some update might deal with the problem, which it didn't, so I decided to post. -Bangle.js Gadgetbridge 0.79.1 (F-Droid) Any help is very much appreciated. Posted at 2024-03-02 by @thyttan Strange. I don't have any suggestions right now. But I wanted to mention this newly opened issue to Gadgetbridges codeberg repo: https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3601 Also, if you store the Gadgetbridge logs (there's a setting in the app) you can look at them after the fact. Edit: this could be related too, https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3600 Posted at 2024-03-04 by @gfwilliams @thyttan do you know if @user156090 maybe you could enable writing to logs in Gadgetbridge and then send us the log you get when connecting to Bangle.js and getting the issue? Posted at 2024-03-04 by @thyttan
I'm almost certain it's just info from Posted at 2024-03-04 by @thyttan Yes, only https://github.com/espruino/BangleApps/blob/master/apps%2Fandroid%2Fboot.js#L207 Posted at 2024-03-04 by @gfwilliams Excellent, thanks! But we're saying that Gadgetbridge on the phone gets stuck showing Posted at 2024-03-04 by @thyttan I think if Gadgetbridge somehow doesn't receive the last 'packet' (I'm unsure on terminology) it wont get Posted at 2024-03-06 by @gfwilliams @user156090 any news on that Gadgetbridge log? It would make our lives a lot easier trying to fix this, as it might be the activity fetch throws an exception that needs to be fixed in Bangle.js code. Thanks for tracking that down @thyttan! @joserebelo do you have any thoughts about this? I think that was your code for activity fetching... I know @thyttan has added some code on the Recording fetching PR that adds a timeout now, so maybe we could do something here and just say that if the record fetch has started but we don't receive any new records for a few seconds, we automatically end the task. Posted at 2024-03-10 by user156090 Hi there, Attachments: Posted at 2024-03-10 by user156090 Oh, and just to clayfiy, the device is not only stuck in the effort to synchronize. It is doing do in vain. Posted at 2024-03-11 by @gfwilliams Thanks for the log! Although this is quite odd - I don't see any mention of Bangle.js stuff at all in there - no communications, not even a mention of It's as if the watch wasn't even connected? Posted at 2024-03-11 by user156090 That is what I found weird, too. Tried another time - 7:20pm multiple "malformed json" errors: attached another log, looks different now. Hope this helps. Attachments: Posted at 2024-03-13 by @thyttan Stumbled upon a report with logs attached over at the r/Gadgetbridge subreddit: Posted at 2024-03-13 by @gfwilliams Thanks! That is perfect! As far as I can tell, there appears to be an issue where if you get a newline right at the beginning of a characteristic that's received, it effectively breaks reception of any extra data. Honestly it's very strange this hasn't come up before as the code has been like that for over 4 years! And the fact that you would appear to be seeing it all the time but others aren't is even more strange. I've just pushed a fix, so if you install a nightly build tomorrow this should then work Posted at 2024-03-15 by user156090 Thanx for taking care of! Posted at 2024-03-18 by @gfwilliams
I don't think so, no - or if you could it'd almost certainly break! Posted at 2024-05-11 by user156090 Short: works! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-11-17 by PlaidFox
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!
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions