Fitbit-for-Google-App-Script icon indicating copy to clipboard operation
Fitbit-for-Google-App-Script copied to clipboard

After Authorize I get the following error

Open matthewobrn opened this issue 9 years ago • 3 comments

Hi,

I have followed the read me and tried this three times now.

It all goes smoothly until I try and run the script for the first time. It authorizes and the side bar appears and I click the link and then it says "You can now close this window" and then I try the "refresh fitbit time data" and it fails with the following error:

Request failed for https://api.fitbit.com/1/user/-/profile.json returned code 403. Truncated server response: {"errors":[{"errorType":"insufficient_scope","message":"This application does not have permission to access profile data. Visit https://dev.fitbit.... (use muteHttpExceptions option to examine full response)

I cant make any headway on this.

Any help would be appreciated.

matthewobrn avatar Nov 13 '15 10:11 matthewobrn

I found the solution here (I also added "sleep"): https://github.com/simonbromberg/googlefitbit/issues/4

After you make the fix, go into your personal fitbit account and revoke access to your account, then create a brand new sheet and follow the instructions again.

stephenbez avatar Dec 05 '15 09:12 stephenbez

Thanks, That fixed the error for me.

Now I just have to get fixed some filling issue that is getting the data wrong by 1 row for each data type...

jurrabi avatar Feb 04 '16 10:02 jurrabi

Code here has expanded scopes since it looks like this repo isn't getting updated: https://github.com/meredithkfwilliams/GoogleSheetsFitBitData

meredithkfwilliams avatar Dec 04 '17 08:12 meredithkfwilliams