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

Why am I getting invalid signature errors?

Hello,

 

I have followed the same procedure in this link:

https://groups.google.com/forum/#!msg/fitbit-api/CkXQ6-0-vMs/VaX_V6gm3BUJ

 

And, I am getting the following error, I would really appreciate it if you could help me.

* Obtain a request token ...

Traceback (most recent call last):
  File "C:/user/workspace/test1.py", line 115, in <module>
    main()
  File "C:/user/Workspace/test1.py", line 48, in main
    auth_token=oauth.OAuthToken.from_string(resp)
  File "C:\Python27\lib\site-packages\oauth\oauth.py", line 142, in from_string
    key = params['oauth_token'][0]
KeyError: 'oauth_token'

Best Answer
0 Votes
1 REPLY 1

Sorry but the log you attached does not tell much except that the error might be related to oauth_token.

If you're seeing response that telling you have incorrect signature that means you are not generating proper signature. Please refer here for more details: https://community.fitbit.com/t5/Web-API/How-to-properly-sign-API-request-and-set-up-OAuth-1-0a-flow/...

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes