07-01-2022 11:16
07-01-2022 11:16
so the same app and specifically a line which does a fetch request, works on android phones and simulator, but on ios fitbit app I get this error thrown
the data couldn't be read because it isn't in the correct format anyone has any idea ? I saw in some searches it's a common swift error
thank you
07-07-2022 02:59
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.
07-07-2022 02:59
Are you definitely returning the response content type as application/json? Have you tried validating the json to ensure there aren't any encoding errors?
07-14-2022 01:14
07-14-2022 01:14
I used proxyman to track request done on ios and there was something sent differently in headers that was making the api return a bad request xml response which makes sense that json() was breaking
Best Answer