google-code-export / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

Blogger accounts get "moved" url #375

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use ProgrammaticLogin() to log into the Blogger service. I 
set the following parameters:

self.source = 'GoogleCL'
self.client_id = 'GoogleCL'
self.ssl = False
self.service = 'blogger'
self.server = 'www.blogger.com'
self.account_type = 'GOOGLE'

but I still get an "account-moved" response (response_body in 
ProgrammaticLogin is  "Auth=https://www.blogger.com/account-moved.g?
bloggerUsername=orignihn&email=orignihn%40gmail.com\n"). Ultimately, the 
code fails with 
  File "/home/orignihn/google/googlecl/trunk/src/util.py", line 77, in 
GetEntries
    f = self.GetFeed(uri)
  File "/usr/local/lib/python2.6/dist-packages/gdata/service.py", line 
1164, in GetFeed
    result = GDataService.Get(self, uri, extra_headers, 
converter=converter)
  File "/usr/local/lib/python2.6/dist-packages/gdata/service.py", line 
1108, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 401, 'body': 
'<HTML>\n<HEAD>\n<TITLE>Token invalid</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Token invalid</H1>\n<H2>Error 
401</H2>\n</BODY>\n</HTML>\n', 'reason': 'Token invalid'}

This does not happen all the time - after an undetermined amount of time / 
number of tries, the login goes through correctly and I get a valid token.

Original issue reported on code.google.com by tom.h.mi...@gmail.com on 1 Jun 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Are you still experiencing this? I cannot reproduce with current library on 
Blogger.

Original comment by afs...@google.com on 19 Dec 2011 at 12:25