Apparent authentication error

120 views
Skip to first unread message

Jason Gilliland

unread,
May 26, 2015, 7:39:28 PM5/26/15
to goo...@googlegroups.com
I am on Debian Wheezy, using goobook 1.6, and I am having what seems to be an authentication error. This error is totally new, and prevents me from accessing my address book at all, although I have been happily and successfully using goobook for a long time.

The error traceback runs as follows:
Traceback (most recent call last):
  File "/usr/local/bin/goobook", line 9, in <module>
    load_entry_point('goobook==1.6', 'console_scripts', 'goobook')()
  File "/usr/local/lib/python2.7/dist-packages/goobook/application.py", line 83, in main
    args.func(config, args)
  File "/usr/local/lib/python2.7/dist-packages/goobook/application.py", line 120, in do_reload
    cache.load(force_update=True)
  File "/usr/local/lib/python2.7/dist-packages/goobook/goobook.py", line 254, in load
    self.update()
  File "/usr/local/lib/python2.7/dist-packages/goobook/goobook.py", line 261, in update
    self.contacts = list(self._parse_contacts(gc.fetch_contacts()))
  File "/usr/local/lib/python2.7/dist-packages/goobook/goobook.py", line 379, in fetch_contacts
    res = self._get(query)
  File "/usr/local/lib/python2.7/dist-packages/goobook/goobook.py", line 362, in _get
    res = self.__client.Get(str(query), converter=ET.fromstring)
  File "/usr/local/lib/python2.7/dist-packages/gdata/service.py", line 1108, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 401, 'body': '<?xml version="1.0" encoding="UTF-8"?>\n<errors xmlns="http://schemas.google.com/g/2005">\n <error>\n  <domain>GData</domain>\n  <code>required</code>\n  <location type="header">Authorization</location>\n  <internalReason>Login Required</internalReason>\n </error>\n</errors>\n', 'reason': 'Unauthorized'}

As you can see, it results in a request error, which seems to say that a login is required, even though, as I mentioned, I have been using goobook successfully for a long time without changing my goobookrc.
Any insight into this problem would be much appreciated, since not being able to access my google contacts from mutt has really put a cramp in my workflow.

Thanks,
Jason

Christer Sjöholm

unread,
May 27, 2015, 2:31:01 AM5/27/15
to Goobook googlegroup
The authentication system Goobook is using, ClientLogin, has been deprecated and removed by Google, i need to rewrite GooBook to use Oauth instead.

I't will probably be a few days before I can do this.

Regards

--
You received this message because you are subscribed to the Google Groups "goobook" group.
To unsubscribe from this group and stop receiving emails from it, send an email to goobook+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Christer Sjöholm
Lövlundsvägen 61B
814 91 Furuvik
Phone: +46 (0)70 2045037

Jason Gilliland

unread,
May 27, 2015, 1:04:58 PM5/27/15
to goo...@googlegroups.com
Thank you so much for your quick response, and for looking into this. I cannot express enough how much I appreciate it.
So inconvenient of Google to deprecate that interface, no?

Brett

unread,
May 27, 2015, 5:50:28 PM5/27/15
to goo...@googlegroups.com
Looking forward to it, thank you!


On Wednesday, May 27, 2015 at 2:31:01 AM UTC-4, Christer Sjöholm wrote:

Yoshiki Vázquez Baeza

unread,
May 30, 2015, 12:23:47 AM5/30/15
to goo...@googlegroups.com
Got it, thanks a lot for your hard work on this awesome tool!

If someone is getting this problem, I was able to "fix" it temporarily by using whatever I have on my goobook cache and bumping the the cache_expiry_hours to 20000.

Thanks!

Yoshiki.

David Klement

unread,
Jun 2, 2015, 3:23:09 AM6/2/15
to goo...@googlegroups.com
Just also want to express my gratitude if you're going to fix it (so you know there is more ppl using it :) )

Justin Chouinard

unread,
Jun 2, 2015, 10:20:18 AM6/2/15
to goo...@googlegroups.com
Same here. Thank you much.

Scott Koranda

unread,
Jun 2, 2015, 10:21:21 AM6/2/15
to goo...@googlegroups.com
+1

Patrick Hooper

unread,
Jun 29, 2015, 1:34:07 PM6/29/15
to goo...@googlegroups.com
Greetings Christer.  I love goobook.  Thank you for the app.  I was wondering if you knew that oauth 1.0 was also unsupported and google has moved to oauth 2.0.  I was trying googlecl and get a message as such.  Just wanted to give you a heads up.

Thanks again.


On Wednesday, May 27, 2015 at 2:31:01 AM UTC-4, Christer Sjöholm wrote:

Christer Sjöholm

unread,
Jun 30, 2015, 1:18:14 AM6/30/15
to Goobook googlegroup
Hi, yes I'm aware and goobook is using oauth2 so we should be safe for a while.

Regards
Reply all
Reply to author
Forward
0 new messages