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
Getting invalid_client error data
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
  13 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
 
翟欣玥 Xinyue Zhai  
View profile  
 More options Sep 6 2011, 1:25 am
From: Xinyue Zhai (翟欣玥) <xinyuez...@google.com>
Date: Tue, 6 Sep 2011 13:25:53 +0800
Local: Tues, Sep 6 2011 1:25 am
Subject: Getting invalid_client error data

Hi,

I downloaded the sample code and wanted to learn and play with it. I
followed the introduction to registered my app on the API console as
Doraemon and got the client ID and secret key.

I run the OAuthSampleTouch in the iphone simulator, and typed the client ID
and secret key in the text fields. It successfully redirects to the google
login screen.  I use my company email and personal email to login and allow
the permission for the app to access data. Everything seems work well. But
when the web view closed, it returns a error message to the finishedSelector
as below:

*2011-09-06 13:11:36.238 OAuthSampleTouch[12454:40b] Error Error
Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed.
(com.google.HTTPStatus error 400.)"*

*Error data:*

*{*

*    error = "invalid_client";*

*}*
I have double checked that this error data means invalid client identifier.
Do I miss something on applying for the client ID?
I am new to OAuth. Please help me on this issue or point to some related
documentation to resolve this problem.

Thanks a lot!

--
Best Wishes!
Xinyue Zhai(翟欣玥)
Seat 322C, Ext 3627

Software Engineer
Infrastructure Networking Department
Google China


 
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.
Sumit Maitra  
View profile  
 More options Sep 6 2011, 3:40 am
From: Sumit Maitra <sumi...@gmail.com>
Date: Tue, 6 Sep 2011 00:40:18 -0700
Local: Tues, Sep 6 2011 3:40 am
Subject: Re: Getting invalid_client error data

Hi,
Did you register your app as a web app or client app? I had made that mistake first time around.

Thanks and Regards,
Sumit.

On Sep 5, 2011, at 10:25 PM, Xinyue Zhai (翟欣玥) <xinyuez...@google.com> wrote:


 
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.
翟欣玥 Xinyue Zhai  
View profile  
 More options Sep 6 2011, 3:44 am
From: Xinyue Zhai (翟欣玥) <xinyuez...@google.com>
Date: Tue, 6 Sep 2011 15:44:58 +0800
Local: Tues, Sep 6 2011 3:44 am
Subject: Re: Getting invalid_client error data

Hi Sumit,

I registered my app as installed application. And how did you resolve the
similar issue?

--
Best Wishes!
Xinyue Zhai(翟欣玥)
Seat 322C, Ext 3627

Software Engineer
Infrastructure Networking Department
Google China


 
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.
Sumit Maitra  
View profile  
 More options Sep 6 2011, 3:54 am
From: Sumit Maitra <sumi...@gmail.com>
Date: Tue, 6 Sep 2011 00:54:37 -0700
Local: Tues, Sep 6 2011 3:54 am
Subject: Re: Getting invalid_client error data

Hello Xinyue,

Since I had made the mistake of registering my app as web client instead of installed client, I was getting this error. One i got the client id and key for installed app, things worked. But you seem to be on the right track so we'll have to wait for Greg to help out here.

I will look up my thread too to see if I can find something.

Regards,
Sumit.
On Sep 6, 2011, at 12:44 AM, Xinyue Zhai (翟欣玥) <xinyuez...@google.com> wrote:


 
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.
Sumit Maitra  
View profile  
 More options Sep 6 2011, 4:07 am
From: Sumit Maitra <sumi...@gmail.com>
Date: Tue, 6 Sep 2011 01:07:19 -0700
Local: Tues, Sep 6 2011 4:07 am
Subject: Re: Getting invalid_client error data

Hello Xinyue,

I must apologize, I was getting 400 - redirect_uri_mismatch and not invalid
client ID. Please disregard my earlier comments. One thing that might help
is, which Service API did you register the app for?

Thanks and Regards,
Sumit.


 
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.
翟欣玥 Xinyue Zhai  
View profile  
 More options Sep 6 2011, 4:13 am
From: Xinyue Zhai (翟欣玥) <xinyuez...@google.com>
Date: Tue, 6 Sep 2011 16:13:38 +0800
Local: Tues, Sep 6 2011 4:13 am
Subject: Re: Getting invalid_client error data

Hi Sumit,

I just register buzz api for test, and the scope defined in the code is

      NSString *scope = @"https://www.googleapis.com/auth/buzz";
Thanks

--
Best Wishes!
Xinyue Zhai(翟欣玥)
Seat 322C, Ext 3627

Software Engineer
Infrastructure Networking Department
Google China


 
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.
翟欣玥 Xinyue Zhai  
View profile  
 More options Sep 7 2011, 5:59 am
From: Xinyue Zhai (翟欣玥) <xinyuez...@google.com>
Date: Wed, 7 Sep 2011 17:59:01 +0800
Local: Wed, Sep 7 2011 5:59 am
Subject: Re: Getting invalid_client error data

Hi,

I found this issue very interesting.
Today I debug the whole sample code, and find that the app can successfully
get the authorization code. But when using fetcher to get the access code,
it receives the invalid_client error message. So I guess there must be
something wrong with the client id. Then I register a test project and get
new client id and client secret. Everything works well. The procedure for
applying client id for the two projects are the same, but I don't know why
the results are a little different.

Thanks.

On Tue, Sep 6, 2011 at 4:13 PM, Xinyue Zhai (翟欣玥) <xinyuez...@google.com>wrote:

--
Best Wishes!
Xinyue Zhai(翟欣玥)
Seat 322C, Ext 3627

Software Engineer
Infrastructure Networking Department
Google China


 
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.
Chris Lacy  
View profile  
 More options Oct 12 2011, 1:42 am
From: Chris Lacy <gdaych...@gmail.com>
Date: Tue, 11 Oct 2011 22:42:47 -0700 (PDT)
Local: Wed, Oct 12 2011 1:42 am
Subject: Re: Getting invalid_client error data

I just experienced this issue. My advice: triple check your Client ID/Secret
are correct. In my case, I was mistaking a 'l' (the letter L) in the secret
for a '1' (the number 1).


 
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.
Scot Stennis  
View profile  
 More options Oct 4 2012, 12:03 am
From: Scot Stennis <scot.sten...@icix-usa.com>
Date: Wed, 3 Oct 2012 21:03:43 -0700 (PDT)
Local: Thurs, Oct 4 2012 12:03 am
Subject: Re: Getting invalid_client error data

I know I'm "late to the party", but I ran into this issue today while
trying to get the GTM OAuth2 lib calls to work. I triple checked my IDs,
etc., but everything was correct. I found the solution to my issue was in
the GTM OAuth2 introduction web page (
http://code.google.com/p/gtm-oauth2/wiki/Introduction), which stated:

"In the console, create a project, then click "API Access" in the left
column. Create a new Client ID for an *Installed Application* (not a web
application) type *other* (not iOS)."

I had registered my app as an "iOS" installed app, and when I changed it to
"other", everything worked.

Hope that helps someone else too.


 
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.
valvoline  
View profile  
 More options Oct 6 2012, 5:53 am
From: valvoline <costantino.pista...@gmail.com>
Date: Sat, 6 Oct 2012 02:53:20 -0700 (PDT)
Local: Sat, Oct 6 2012 5:53 am
Subject: Re: Getting invalid_client error data

Same here. i downloaded the DrEdit sample code. Enabled the APIs Console to
use the Drive API. Obtained a CliendID/Secret for Desktop Application/iOS.

However i receive the infamous 400 error: *    error = "invalid_client";*

Any hints?

--
c.


 
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.
Roberto Sonzogni  
View profile  
 More options Nov 15 2012, 6:26 am
From: Roberto Sonzogni <roberto.sonzo...@gmail.com>
Date: Thu, 15 Nov 2012 03:26:16 -0800 (PST)
Local: Thurs, Nov 15 2012 6:26 am
Subject: Re: Getting invalid_client error data

Read the previous message:

----
I had registered my app as an "iOS" installed app, and when I changed it to
"other", everything worked.
----

Same worked for me.

Il giorno sabato 6 ottobre 2012 11:53:20 UTC+2, valvoline ha scritto:


 
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.
php_dev  
View profile  
 More options Nov 15 2012, 7:40 am
From: php_dev <mindfire.tes...@gmail.com>
Date: Thu, 15 Nov 2012 04:40:26 -0800 (PST)
Local: Thurs, Nov 15 2012 7:40 am
Subject: Re: Getting invalid_client error data

Hi,
I was facing the same problem. I was using '{}' braces around the secret
key. After I removed them and tried, it works.


 
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.
Xianning  
View profile  
 More options Nov 25 2012, 7:52 am
From: Xianning <xn...@thoughtworks.com>
Date: Sun, 25 Nov 2012 04:52:30 -0800 (PST)
Local: Sun, Nov 25 2012 7:52 am
Subject: Re: Getting invalid_client error data

 I met the same problem and resolved by  Scot solution, I just wonder why
"iOS" installed app doesn't work?


 
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 »