07-28-2022 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-28-2022 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Accepted Solutions
07-28-2022 01:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-28-2022 01:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-28-2022 00:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Gondwana Software

07-28-2022 01:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-28-2022 01:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-28-2022 01:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-28-2022 01:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@JonFitbit Thanks for the info.

07-29-2022 08:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-29-2022 08:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-01-2022 17:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-03-2022 21:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2022 10:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Any update on when the fix is planned for release?

08-15-2022 23:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-15-2022 23:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@JonFitbit Do you know when the release including the fix is planned?

07-01-2023 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-01-2023 09:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2024 06:17 - edited 10-08-2024 06:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2024 18:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
See here, and subsequent.
Gondwana Software
10-08-2024 20:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-08-2024 20:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2024 21:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry; I was actually responding to @Guy_ 's post. I should have indicated that.
Gondwana Software

10-08-2024 21:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2024 21:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-08-2024 21:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
Gondwana Software
10-24-2024 22:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-24-2024 22:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
10-24-2024 23:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-24-2024 23:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Now that you mention it, somebody once said that they installed a WAMP(?) package that did FTTPS on their Windows. I forget which package.
Gondwana Software

