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

OAuth 2.0 Tutorial error

I've spent the morning struggling with something that should obviously be simple as it is part of your tutorial but I am clearly missing something.

 

I'm going through the tutorial and everything works fine up to step 2. I get back my code and the curl request looks like it is being built correctly. However, when I send it to Hurl.it it always responds with an error so I can't get my access token. 

 

This is the response from hurl.it:

HEADERS

Cache-Control: no-cache, private

Cf-Ray: 2afdf6d683270097-IAD

Connection: keep-alive

Content-Encoding: gzip

Content-Language: en-US

Content-Type: application/json;charset=utf-8

Date: Wed, 08 Jun 2016 17:11:39 GMT

Server: cloudflare-nginx

Transfer-Encoding: chunked

Vary: Accept-Encoding

Www-Authenticate: Bearer realm="api.fitbit.com"

X-Frame-Options: SAMEORIGIN

BODYview raw
{"errors": [{"errorType": "invalid_request","message": "Authorization header required. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success": false}
 
I have this line in my curl request:
Authorization: Basic MjI3VEtCOjI3ODNhNTNlOTIyZTM4OTM3NWM1MjRkYmUyMDQzMzRk
which I understand to be the authorization header.
 
What am I missing? Any suggestions would be appreciated.
 
Thanks,
Alex
 
Best Answer
5 REPLIES 5

I dont know why no one is picking up this error in the Tutorial.

I am in the same situation where I cant get any response from the Hurl.it.

 

I also keep getting a 401 Error.

 

I have tried it through runscope's Oauth2 Token Generator too with no success.

 

http://prntscr.com/bpwbye

 

Best Answer

BUMP. same issue. ridiculous. can't get any of the wrappers to work either.

 

What are we all missing?

Best Answer
0 Votes

bump, can anyone get the tutorial working?

 

all of the wrappers i use seem to be getting the same error that i get when i use the tutorial straight from the fitbit developer page, so I think this may be a fitbit systems error instead of my code...

 

is the tutorial working for other folks?

Best Answer
0 Votes

Anyone? I'm having the same issue as well.

Best Answer
0 Votes

@Haiiro Check the post I made for the OAuth 2.0 tutorial.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes