Currently, the Search Food API seems to be randomly returning empty results for searches.
To reproduce: use the Web API explorer and set the query to something like "cheez" or "honey".
https://api.fitbit.com/1/foods/search.json?query=cheez
Try it a few times. The API will sometimes return results and sometimes an empty list.
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.
Hi @jl__
I have tried reproducing this problem as you instructed by calling the endpoint about 10-15 times for "cheez" and "honey". Unfortunately, I have not been able to reproduce the problem. Are you able to still reproduce the problem today? If so, could you record the problem and send me the video?
Best AnswerHi Gordon! I'm not able to reproduce the issue today (it was still having problems as recently as Sunday), so it seems like the problem has been resolved for now. Thanks for looking into it!
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.
Thank you for confirming. If you see the problem again, please let us know. Unfortunately, due to the US holiday, I wasn't able to test it until today.
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.
Hi @jl__
Thank you for reporting the problem again. I am able to reproduce the problem, which I have recorded a video and will report to our engineering team. I will let you know what I find out.
Best AnswerHey Gordon - any update on this? I am facing the same issue with the non-deterministic search food API. I am getting an empty array ~90% of the time when giving the same query parameter.
Best AnswerI am having the same issue
Best Answer@MomTwoDark Your issue may not be directly related to the Web API. If you let me know whether you're using iOS or Android, we can move you post to somewhere where it may get more traction.
Best AnswerThe web API is more broken than it was before (seems to return an empty {} every time instead of sometimes returning an empty food array). This may be related to the back end issues that are causing problems for the iOS and Android apps.
Best AnswerIOS
Thank you
Best Answerit’s working again today
Best AnswerGlad to hear it. It could have been this issue.
For future reference, issues with the iOS mobile app are best mentioned here.
Best Answer