07-28-2022 00:39
07-28-2022 00:39
Hi
I'm using the fetch API for my HA Remote app.
I experience random Type errors while using the fetch API.
For the connection I'm using HTTP to a local IP address. According to the specification that should be possible.
Answered! Go to the Best Answer.
07-28-2022 01:11
07-28-2022 01:11
There's a bug in the latest Android app blocking local unsecured traffic. A fix should be coming in the next update.
07-28-2022 00:46
07-28-2022 00:46
It depends on the IP address; only a subset are allowed to use HTTP. However, I don't think that a security problem would manifest as a type error, nor be random.
07-28-2022 01:09
07-28-2022 01:09
@Gondwana
I agree it shouldn't be random. That's why I don't understand the problem.
I also didn't change my IP address (192.168.x.x), but apparently since a couple of days it's not working anymore (that's what I mean with random, sorry for a bad wording here).
I checked with some debug logs and a dev-build but still don't see an issue neither on code side nor on configuration side.
07-28-2022 01:11
07-28-2022 01:11
There's a bug in the latest Android app blocking local unsecured traffic. A fix should be coming in the next update.
07-28-2022 01:13
07-28-2022 01:13
@JonFitbit Thanks for the info.
07-29-2022 08:04
07-29-2022 08:04
I'm looking forward to this fix. After the 7-22-22 Fitbit app update my fetch no longer works either. That's to a local web server on my phone, using the http://127.0.0.1 address. It's just pulling JSON, but after the update it has not worked at all.
08-01-2022 17:08
08-01-2022 17:08
Hello, when will be this update released? My app started to have bad reviews from users due to this bug...
08-03-2022 21:43
08-03-2022 21:43
Is this problem SDK-specific? I have an app written for Ionic that still works (http/192.168....), however the same fetch() code consistently fails on Sense with TypeError. This has been keeping me banging my head on the monitor for the past few days. Could you confirm that it's the bug and not some breaking change in the way fetch API works between versions? Thanks.
08-15-2022 10:18
08-15-2022 10:18
Any update on when the fix is planned for release?
08-15-2022 23:58
08-15-2022 23:58
@JonFitbit Do you know when the release including the fix is planned?
07-01-2023 09:50
07-01-2023 09:50
it has been a year... the bug still seems to persist. is there any update on this?
10-08-2024 06:17 - edited 10-08-2024 06:22
10-08-2024 06:17 - edited 10-08-2024 06:22
Is there still a bug?
Fetch works with http://192.168.1.xxx but doesn't work with http://192.168.207.xxx
Or is this a limitation of the implementation?
Is there a workaround so it works on all local LANs?
Author | ch, passion for improvement.
10-08-2024 18:44
10-08-2024 18:44
See here, and subsequent.
10-08-2024 20:58
10-08-2024 20:58
@Gondwana the post you're referring to is 2yr older than my question ;).
But thanks for answering this post.
I already gave up.
10-08-2024 21:01
10-08-2024 21:01
Sorry; I was actually responding to @Guy_ 's post. I should have indicated that.
10-08-2024 21:09
10-08-2024 21:21
10-08-2024 21:21
No, I don't think those things are possible. The only alternatives that I know are to install and use HTTPS on your LAN (difficult!), or to write a server to run on your phone that can onforward comms (also difficult!). I think there's a bad example or two of the latter approach here.
10-24-2024 22:45
10-24-2024 23:26
10-24-2024 23:26
Now that you mention it, somebody once said that they installed a WAMP(?) package that did FTTPS on their Windows. I forget which package.