Skip to content

Issue with getData.py #17

@evothelegacy

Description

@evothelegacy

Having some issues getting data to show from fitbit. I have the Client ID & Secret in the credentials.ini, and have run the setupaccess.py from the PI itself. but running this command to verify its pulling data is failing. any help or input would be appreciated.

sudo python getData.py

output:

pi@raspberrypi:~/MagicMirror/modules/MMM-fitbit/python $ sudo python getData.py
{"message": "credentials.ini exists", "type": "status"}
{"message": "Reading from credentials.ini", "type": "status"}
{"message": "Read of credentials.ini successful.", "type": "status"}
{"message": "credentials.ini exists", "type": "status"}
{"message": "Reading from credentials.ini", "type": "status"}
{"message": "Read of credentials.ini successful.", "type": "status"}
{"message": "tokens.ini exists", "type": "status"}
{"message": "Reading from tokens.ini", "type": "status"}
{"message": "Read of tokens.ini successful.", "type": "status"}
{"message": "Making API call", "type": "status"}
{"message": {"401": {"errors": [{"message": "Invalid authorization header format. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.", "errorType": "invalid_client"}], "success": false}}, "type": "error"}
{"message": "API call failed", "type": "status"}
{"message": "Error when making API call that I couldn't handle", "type": "status"}
``'

-Aaron

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions