Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Google OAuth2 Authentication Error problem with OpenERP 7

By
P Mittal
on 5/13/13, 7:18 AM 1,624 views

I am using the following debian build of OpenERP 7: openerp-7.0-20130510-231240.

I get the following error when I try to use Google OAuth2 with OpenERP. I have set the client id appropriately and get the google authentication page which asks for permission. But then, the redirection back to the OpenERP server takes a lot of time and then fails with Authentication Failure and the follo. traceback: (I ran the openerp-server with --db-filter=<mydatabase> so that only one particular database is used, as per the video explanation here: youtube.com/watch?v=RHOjSJoXad0&list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye&index=2

7977 ERROR openerptest openerp.addons.auth_oauth.controllers.main: OAuth2: <urlopen error [Errno 110] Connection timed out>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130510_231240-py2.7.egg/openerp/addons/auth_oauth/controllers/main.py", line 65, in signin
    credentials = u.auth_oauth(cr, SUPERUSER_ID, provider, kw, context=context)
  File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130510_231240-py2.7.egg/openerp/addons/auth_oauth/res_users.py", line 74, in auth_oauth
    validation = self._auth_oauth_validate(cr, uid, provider, access_token)
  File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130510_231240-py2.7.egg/openerp/addons/auth_oauth/res_users.py", line 40, in _auth_oauth_validate
    validation = self._auth_oauth_rpc(cr, uid, p.validation_endpoint, access_token)
  File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130510_231240-py2.7.egg/openerp/addons/auth_oauth/res_users.py", line 33, in _auth_oauth_rpc
    f = urllib2.urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 110] Connection timed out>

Note: The above traceback is just the seemingly relevant part of the error. The complete traceback is here: pastebin.com/6gHhyPwX

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/13/13, 7:18 AM
Seen: 1624 times
Last updated: 4/17/15, 7:33 PM