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

NullPointerException on HTTP call #7

Closed
ghost opened this issue Sep 4, 2022 · 3 comments
Closed

NullPointerException on HTTP call #7

ghost opened this issue Sep 4, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 4, 2022

Here is what I got in the Gadgetbridge log when I try to call a https site

22:30:50.470 [Binder:6134_8] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX LINE: {"t":"http","url":"https://pur3.co.uk/hello.txt","id":"40699574509"} 22:30:50.470 [Binder:6134_8] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX JSON parsed successfully 22:30:50.495 [main] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART TX: �GB({t:"http",id:"40699574509",err:"com.android.volley.VolleyError: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Set java.util.Map.keySet()' on a null object reference"})

I am using the following snipped:
Bangle.http("https://pur3.co.uk/hello.txt").then(data=>{ E.showMessage(data); });

Version of Gadgetbridge: 0.68.0b-banglejs
Version of Bangle 2: 2v15.5

@gfwilliams
Copy link
Owner

As mentioned in your forum post at http://forum.espruino.com/conversations/370708/?offset=100#comment16673484

Do you think this could be http://forum.espruino.com/conversations/379050/ ?

If so it's already fixed (in the nightly builds) but I haven't yet done a release with it in

@ghost
Copy link
Author

ghost commented Sep 6, 2022

Yes indeed, it worked when I tested to add the headers-part

@gfwilliams
Copy link
Owner

Ok, great - then I think this is fixed, it's just that I need to push an update to the Play Store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant