Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What does 401 on a GET mean?

I have an app where I successfully authenticate the user, and then receive a 401 when trying to make a GET to:

 

/1/user/-/foods/log/caloriesIn/date/today/max.json

 

This appears to only happen intermittently.

 

Do you know what this could mean? I don't see anything specifically about 401 in the activity endpoint docs or on the Basics page

Best Answer
0 Votes
2 REPLIES 2

What does the error message in the response body say?

Best Answer
0 Votes

Here's the bug report I'm following up on: https://github.com/NickHeiner/fitbit-export/issues/12. You can see some additional details there.

 

I am actually not sure from that output what the response body says, although that sure would have been good information for me to include with my original question! 🙂 I'll investigate more and get back to you.

Best Answer
0 Votes