nightscout / nightguard

iOS and WatchOS Client for the Nightscout CGM System
GNU Affero General Public License v3.0
238 stars 158 forks source link

Invalid JSON received from API V2 Properties, missing bgs array #169

Closed AlexanderShumskiy closed 2 years ago

AlexanderShumskiy commented 2 years ago

Nightguard ver. 3.6.2.752 (iOS) Nightscout backend ver. 14.2.2

  1. After updating the application to version 3.6.2, I had everything ok for a while. But after the readings from the sensor were transmitted to the Nightscout website - the error "Invalid JSON..." appeared again in the application - see the screenshot.

  2. After updating the application to version 3.6.2, changes (delta) are no longer displayed - with any change in the application, "+-0" or "+0" is displayed.

IMAGE 2021-10-21 16:54:54

dhermanns commented 2 years ago

Hi Alexander, thanks for your feedback! Can you send me your URI?

issue169.hermanns@spamgourmet.com

Looks like something in your data seems to cause trouble in the newly introduced API V2 endpoint :-(

AlexanderShumskiy commented 2 years ago

After the values from the sensor began to arrive on the Nightscout website again (after 40 minutes), the error in the Nightguard application disappeared (from point 1)

dhermanns commented 2 years ago

Yes - missed that one. Looks like the boring error message has been display if no data was available at all. I switched back to the old behavior, that simply the last value is displayed. This is fixed in V3.6.3. Please have a look at the TestFlight:

https://testflight.apple.com/join/Ub8WcpcE

V3.6.3 should be available as a TestFlight soon...

dhermanns commented 2 years ago

Itˋs online now. Let me know whether it helps...

AlexanderShumskiy commented 2 years ago

>>Please have a look at the TestFlight: https://testflight.apple.com/join/Ub8WcpcE Only 3.6.0.749 is available now. Works great for me :)

dhermanns commented 2 years ago

Please try again

AlexanderShumskiy commented 2 years ago

Thanks, installed v3.6.3.753. Tell me, please "changes (delta) are no longer displayed" - this problem can be solved?

dhermanns commented 2 years ago

Sure - didn't noticed that this still is a problem. But I have your URI. I will have a look what still is different on your site ;-).

AlexanderShumskiy commented 2 years ago

Yes, v3.6.1 - 3.6.3 does not display delta for me. Today, after updating to version 3.6.3, I took two screenshots at the same time - NS vs NG. A similar situation is observed with any changes (up, down, etc.)

Nightguard v3 6 3 Nightscout v14 2 2

dhermanns commented 2 years ago

Build 754 should fix this, too. It's available now.

develok commented 2 years ago

Yes - missed that one. Looks like the boring error message has been display if no data was available at all. I switched back to the old behavior, that simply the last value is displayed. This is fixed in V3.6.3. Please have a look at the TestFlight:

https://testflight.apple.com/join/Ub8WcpcE

V3.6.3 should be available as a TestFlight soon...

There's no slots available for this link ☹️

AlexanderShumskiy commented 2 years ago

Build 754 should fix this, too. It's available now.

Thanks! Everything is fine now!

dhermanns commented 2 years ago

Great!

jfigueroa69 commented 6 months ago

Hi I am having problems getting Gluroo to work with nights out. Getting error Invalid JSON received from API V2 Properties, missing bgs array. used the following: https://14cf.ns.gluroo.com/","apiSecret":"14cfec46-xxxxx-xxxxx-xxxxxx-xxxxxxxxx IMG_8660 Please assist me so I can get this to work on my Apple Watch as well

dhermanns commented 6 months ago

Hi! What URI did you enter in Nightguard? It should look like:

https://xxxx.ns.gluroo.com:39893?token=14cfec46-xxxx-xxxxx-xxxxx

And the Port 39893 would be typically individual to your generated site too. You can send me your entered URI here

issue169.hermanns@spamgourmet.com

Probably this is due to a wrong gluroo URL.

jfigueroa69 commented 6 months ago

I have the following: https://14cf.ns.gluroo.com/14cfec46-82a9-4f09-91f0-19f1982761c9Not sure where to find the Port info on the App as I am very new to this.Thank youJuan Figueroa On Mar 1, 2024, at 8:49 AM, dhermanns @.***> wrote: Hi! What URI did you enter in Nightguard? It should look like: https://xxxx.ns.gluroo.com:39893/api/v1/entries?token=14cfec46-xxxx-xxxxx-xxxxx And the Port 39893 would be typically individual to your generated site too.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

jfigueroa69 commented 6 months ago

This is what my screen looks likeSent from my iPhoneOn Mar 1, 2024, at 9:12 AM, Juan Figueroa @.> wrote:I have the following: https://14cf.ns.gluroo.com/14cfec46-82a9-4f09-91f0-19f1982761c9Not sure where to find the Port info on the App as I am very new to this.Thank youJuan Figueroa On Mar 1, 2024, at 8:49 AM, dhermanns @.> wrote: Hi! What URI did you enter in Nightguard? It should look like: https://xxxx.ns.gluroo.com:39893/api/v1/entries?token=14cfec46-xxxx-xxxxx-xxxxx And the Port 39893 would be typically individual to your generated site too.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

dhermanns commented 6 months ago

Then you should use

https://14cf.ns.gluroo.com?token=14cfec46-82a9-4f09-91f0-19f1982761c9

as your nightguard URL. Let me know if it works. I will delete all references here.

As soon as you use it, you shouldn't share it publicly ;)

dhermanns commented 6 months ago

And the error message you will see just means there are currently no values existing. Which seems to be the case right now.

jfigueroa69 commented 6 months ago

Not sure what I am doing wrong but the message comes up after I used the link you sent me. Thank you for the support JuanSent from my iPhoneOn Mar 1, 2024, at 10:07 AM, dhermanns @.***> wrote: And the error message you will see just means there are currently no values existing. Which seems to be the case right now.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

dhermanns commented 6 months ago

As pointed out: Did you have bgvalues uploaded already? Seems not.

jfigueroa69 commented 6 months ago

Ok that is where I am confused at so where do I this at? In the Gluroo App or the Nightscout or neither? ThanksOn Mar 1, 2024, at 3:09 PM, dhermanns @.***> wrote: As pointed out: Did you have bgvalues uploaded already? Seems not.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

dhermanns commented 6 months ago

Maybe you should read the nightscout documentation or gluroo, if you have no idea how to upload your glucose values. That depends on many factors and is out of scope of nightguard. Visit the nightscout facebook groups e.g.