Google Groups

Re: [bloggerDev] failedWithStatus:401 data:The user is not allowed to create a comment - Log included


Brett Morgan Apr 16, 2012 5:08 PM
Posted in group: Blogger Developer Group
Hi Jonathan,

I doubt it's the cause of your issue, but your use of ClientLogin is a worry. You really need to look at upgrading to OAuth2 ASAP. I'll investigate comment posting using the power of curl and see if I can replicate your issue.

brett

On Tue, Apr 17, 2012 at 6:11 AM, Jonathan Elwin Soryu <jonatha...@gmail.com> wrote:
Address of blog is following:

Currently using GData Objective C Library. Greg Robbins already looked at it referred to bloggerDev instead.

Here's a log with full address shown:

addEntryTicket:finishedWithEntry:error:

2012-04-14 03:04:17 +0000
Request headers:
  Accept: application/atom+xml, text/xml
  Authorization: GoogleLogin auth=_snip_
  Cache-Control: no-cache
  Content-Length: 607
  Content-Type: application/atom+xml; charset=utf-8
  GData-Version: 2.0
  User-Agent: kernel.Panic!-Blogs-0.1 GData-ObjectiveC/1.12 iPhone_Simulator/5.1 (gzip)

Request body: (607 bytes)
<?xml version="1.0" encoding="UTF-8"?>


Response: status 401
Response headers:
  Cache-Control: private, max-age=0
  Content-Encoding: gzip
  Content-Type: text/html; charset=UTF-8
  Date: Sat, 14 Apr 2012 03:04:13 GMT
  Expires: Sat, 14 Apr 2012 03:04:13 GMT
  Server: GSE
  Transfer-Encoding: Identity
  Www-Authenticate: GoogleLogin realm="https://www.google.com/accounts/ClientLogin", service="blogger", AuthSub realm="https://www.google.com/accounts/AuthSubRequest", service="blogger"
  X-Content-Type-Options: nosniff
  X-Robots-Tag: noindex, nofollow
  X-XSS-Protection: 1; mode=block

Response body: (43 bytes)
The user is not allowed to create a comment
-----------------------------------------------------------


On Mon, Apr 16, 2012 at 1:09 AM, Brett Morgan <brett...@google.com> wrote:
Can I have your blog? It is helpful to have the full URL so we can track what is happening.

brett

On Sat, Apr 14, 2012 at 1:41 PM, chOsteR <jonatha...@gmail.com> wrote:
Please let me know what other information are required for further
investigation:

2012-04-14 03:04:17 +0000
addEntryTicket:finishedWithEntry:error:      request/response log
request: POST http://**********.blogspot.com/feeds/3922898985617517459/comments/default
  headers: 7    authorized, non-SSL ⚠
  data: 607 bytes, application/atom+xml; charset=utf-8
response:  status 401  ⚑
  headers: 11
  data: 43 bytes, text/html

addEntryTicket:finishedWithEntry:error:

2012-04-14 03:04:17 +0000
Request: POST http://**********.blogspot.com/feeds/3922898985617517459/comments/default
Request headers:
 Accept: application/atom+xml, text/xml
 Authorization: GoogleLogin auth=_snip_
 Cache-Control: no-cache
 Content-Length: 607
 Content-Type: application/atom+xml; charset=utf-8
 GData-Version: 2.0
 User-Agent: **********-Blogs-0.1 GData-ObjectiveC/1.12
iPhone_Simulator/5.1 (gzip)

Request body: (607 bytes)
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://
schemas.google.com/g/2005" xmlns:app="http://www.w3.org/2007/app"
xmlns:thr="http://purl.org/syndication/thread/1.0"><title>test</
title><content>test</content><author><uri>http://www.blogger.com/
profile/10380291707154269816
</uri><name>**********</
name><email>nor...@blogger.com</email><gd:image rel="http://
schemas.google.com/g/2005#thumbnail" width="19" height="32"
src="http://4.bp.blogspot.com/-uQE3bLNwV40/T15BDHvH9XI/AAAAAAAAADU/
nm8ah-zO_4A/s220/20111216062038957f3_062525_0.jpg
"/></author></entry>


Response: status 401
Response headers:
 Cache-Control: private, max-age=0
 Content-Encoding: gzip
 Content-Type: text/html; charset=UTF-8
 Date: Sat, 14 Apr 2012 03:04:13 GMT
 Expires: Sat, 14 Apr 2012 03:04:13 GMT
 Server: GSE
 Transfer-Encoding: Identity
 Www-Authenticate: GoogleLogin realm="https://www.google.com/accounts/
ClientLogin", service="blogger", AuthSub realm="https://www.google.com/
accounts/AuthSubRequest
", service="blogger"
 X-Content-Type-Options: nosniff
 X-Robots-Tag: noindex, nofollow
 X-XSS-Protection: 1; mode=block

Response body: (43 bytes)
The user is not allowed to create a comment
-----------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to blogg...@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Relations Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to blogg...@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to blogg...@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--

Brett Morgan

Developer Relations Engineer, Blogger