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
Error 401 Unauthorized
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
  2 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
 
David M  
View profile  
 More options Oct 6 2010, 12:02 pm
From: David M <da...@boxedice.com>
Date: Wed, 6 Oct 2010 09:02:28 -0700 (PDT)
Local: Wed, Oct 6 2010 12:02 pm
Subject: Error 401 Unauthorized
I have followed some debug steps elsewhere in this group to try and
find the cause of the 401 Unauthorized error, but I'm not having any
luck. This is what I'm sending

curl --trace-ascii - -d
"registration_id=<INSERT_REG_ID_HERE>&collapse_key=foo&data.key1=bar&delay_
while_idle=1" -H "Authorization: GoogleLogin auth=KEY"
http://android.apis.google.com/c2dm/send

I have not replaced <INSERT_REG_ID_HERE> with anything as I have yet
to get past the 401 error. I understand this is incorrect but it
should provide a different error.

I am replacing KEY in the Authorization header with my ClientLogin
key.

I'm using the Google account da...@boxedice.com which is what I used
to register for C2DM.

== Info: About to connect() to android.apis.google.com port 80 (#0)
== Info:   Trying 209.85.229.100... == Info: connected
== Info: Connected to android.apis.google.com (209.85.229.100) port 80
(#0)
=> Send header, 494 bytes (0x1ee)
0000: POST /c2dm/send HTTP/1.1
001a: User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.1
005a: 9.7 OpenSSL/0.9.8l zlib/1.2.3
0079: Host: android.apis.google.com
0098: Accept: */*
00a5: Authorization: GoogleLogin auth=KEY
01a7: Content-Length: 87
01bb: Content-Type: application/x-www-form-urlencoded
01ec:
=> Send data, 87 bytes (0x57)
0000: registration_id=<INSERT_REG_ID_HERE>&collapse_key=foo&data.key1=
0040: bar&delay_ while_idle=1
<= Recv header, 27 bytes (0x1b)
0000: HTTP/1.1 401 Unauthorized
<= Recv header, 40 bytes (0x28)
0000: Content-Type: text/html; charset=UTF-8
<= Recv header, 37 bytes (0x25)
0000: Date: Wed, 06 Oct 2010 15:58:02 GMT
<= Recv header, 40 bytes (0x28)
0000: Expires: Wed, 06 Oct 2010 15:58:02 GMT
<= Recv header, 35 bytes (0x23)
0000: Cache-Control: private, max-age=0
<= Recv header, 33 bytes (0x21)
0000: X-Content-Type-Options: nosniff
<= Recv header, 29 bytes (0x1d)
0000: X-Frame-Options: SAMEORIGIN
<= Recv header, 33 bytes (0x21)
0000: X-XSS-Protection: 1; mode=block
<= Recv header, 13 bytes (0xd)
0000: Server: GSE
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 158 bytes (0x9e)
0000: 93
0004: <HTML>.<HEAD>.<TITLE>Unauthorized</TITLE>.</HEAD>.<BODY BGCOLOR=
0044: "#FFFFFF" TEXT="#000000">.<H1>Unauthorized</H1>.<H2>Error 401</H
0084: 2>.</BODY>.</HTML>.
0099: 0
009c:
<HTML>
<HEAD>
<TITLE>Unauthorized</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Unauthorized</H1>
<H2>Error 401</H2>
</BODY>
</HTML>
== Info: Connection #0 to host android.apis.google.com left intact
== Info: Closing connection #0


 
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.
Costin Manolache  
View profile  
 More options Oct 6 2010, 12:52 pm
From: Costin Manolache <cos...@google.com>
Date: Wed, 6 Oct 2010 09:52:28 -0700
Local: Wed, Oct 6 2010 12:52 pm
Subject: Re: Error 401 Unauthorized

Please fill the sign-up form again, with a different account which doesn't
have both a hosted and a consumer account with the same name.

You can also try to request "HOSTED" instead of "HOSTED_OR_GOOGLE" in
ClientLogin - the hosted account is enabled for C2DM if there are both a
hosted and a consumer ( google ) account. If your domain is converted to use
the new 'consumer' account style - the problem may go away as well, since
the old consumer account will be renamed.

But if you want to avoid any troubles - just sign with a new non-conflicting
address.

Costin


 
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 »