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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
There's a bug in the latest Android app blocking local unsecured traffic. A fix should be coming in the next update.
Best Answer@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.
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
There's a bug in the latest Android app blocking local unsecured traffic. A fix should be coming in the next update.
Best AnswerI'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.
Hello, when will be this update released? My app started to have bad reviews from users due to this bug...
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.
Best Answerit has been a year... the bug still seems to persist. is there any update on this?
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
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.
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Best AnswerNo, 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.
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Now that you mention it, somebody once said that they installed a WAMP(?) package that did FTTPS on their Windows. I forget which package.
Best Answer