Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
This request requires HTTP authentication
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
real_ate  
View profile  
 More options May 7 2012, 7:23 pm
From: real_ate <and...@bloo.ie>
Date: Mon, 7 May 2012 16:23:23 -0700 (PDT)
Local: Mon, May 7 2012 7:23 pm
Subject: This request requires HTTP authentication

Hi All,  

I've just figured out the API and made my first successful weight update
(go me!). But now I'm having a few troubles. I was developing locally and
after I pushed my code to my live site I tried to submit another weight
update but I get a 401 error with the text "This request requires HTTP
authentication".

I looked into the issue a bit more and it seems that I wasn't actually
being returned an access_token, I was getting and error back with the text
: "invalid_request".

I don't know what to do. It might be related to the fact that I tried
removing the app from my Runkeeper account to see if I needed to add it
again or something. Is removing an app permanent or something?

The app is hosted at http://weighttrail.com/ if you want to see for
yourself. It just adds a weight to your profile at the moment when you
submit.

Any help would be greatly appreciated,
Cheers!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Barratt  
View profile  
 More options May 7 2012, 7:35 pm
From: Christopher Barratt <christopher.barr...@runkeeper.com>
Date: Mon, 7 May 2012 19:35:56 -0400
Local: Mon, May 7 2012 7:35 pm
Subject: Re: This request requires HTTP authentication

"invalid_request" is an OAuth error:

* From the authorization endpoint, it means that the "response_type" was
something other than "code";

* From the token endpoint, it means that one or more of the following are
incorrect: client_id, client_secret, code, and/or redirect_uri.

If you send me your client ID, I can look at our logs to see which case is
occurring.  Common causes are:

* Attempt to re-use an authorization code (they expire as soon as they are
converted to access tokens); or,
* Not passing the same redirect_uri to both endpoints.

-- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
real_ate  
View profile  
 More options May 8 2012, 4:09 am
From: real_ate <and...@bloo.ie>
Date: Tue, 8 May 2012 01:09:20 -0700 (PDT)
Local: Tues, May 8 2012 4:09 am
Subject: Re: This request requires HTTP authentication

Hi Chris,

I had a look back over my code and I think I have everything in place and
there is nothing incorrect. I had the exact same code working not so long
ago so I don't see what could be wrong.

My client id is 75c81795efb84b93acfde284f604eed1 so if you could have a
look at the logs I would be very grateful.

Cheers,
- A


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Barratt  
View profile  
 More options May 8 2012, 5:20 pm
From: Christopher Barratt <christopher.barr...@runkeeper.com>
Date: Tue, 8 May 2012 17:20:17 -0400
Local: Tues, May 8 2012 5:20 pm
Subject: Re: This request requires HTTP authentication

Andrew,

Your requests for an access token appear to be missing a redirect_uri.
 (You're setting it correctly on the request for an authorization code.)

-- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
real_ate  
View profile  
 More options May 8 2012, 8:08 pm
From: real_ate <and...@bloo.ie>
Date: Tue, 8 May 2012 17:08:57 -0700 (PDT)
Local: Tues, May 8 2012 8:08 pm
Subject: Re: This request requires HTTP authentication

Hi Chris,

For some reason I had changed my redirect_uri to redirect_url and hadn't
noticed. Should this not give a better error saying what the problem is?

- A


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Barratt  
View profile  
 More options May 8 2012, 8:41 pm
From: Christopher Barratt <christopher.barr...@runkeeper.com>
Date: Tue, 8 May 2012 20:41:28 -0400
Local: Tues, May 8 2012 8:41 pm
Subject: Re: This request requires HTTP authentication

The error message is dictated by the OAuth 2.0 protocol.

-- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »