← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1324810] [NEW] Error conection in import_google

 

Public bug reported:

When I try to connect with google calendar account this error arises:

Client Traceback (most recent call last):
  File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/daniel/openerp/6.1/web/addons/web/controllers/main.py", line 1209, in load
    return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
  File "/home/daniel/openerp/6.1/web/addons/web/controllers/main.py", line 1091, in fields_view_get
    fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
  File "/home/daniel/openerp/6.1/web/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/home/daniel/openerp/6.1/web/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 608, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

Server Traceback (most recent call last):
  File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 593, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/daniel/openerp/6.1/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/daniel/openerp/6.1/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 186, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 129, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 195, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 183, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 2159, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 1798, in __view_look_dom_arch
    fields = self.fields_get(cr, user, None, context)
  File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 3363, in fields_get
    res[f] = fields.field_to_dict(self, cr, user, field, context=context)
  File "/home/daniel/openerp/6.1/openerp/osv/fields.py", line 1580, in field_to_dict
    res['selection'] = field.selection(model, cr, user, context)
  File "/home/daniel/openerp/6.1/openerp/addons/import_google/wizard/import_google_data.py", line 79, in _get_group
    groups = gd_client.GetFeed(query.ToUri())
  File "/usr/lib/pymodules/python2.7/gdata/service.py", line 1163, in GetFeed
    result = GDataService.Get(self, uri, extra_headers, converter=converter)
  File "/usr/lib/pymodules/python2.7/gdata/service.py", line 1107, in Get
    'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 301, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Permanently</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Permanently</H1>\nThe document has moved <A HREF="https://www.google.com/m8/feeds/groups/default/full";>here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Moved Permanently'}

I have the same error in GTK and Web Client

** Affects: ocb-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Community Backports, which is subscribed to OpenERP Community Backports
(Addons).
https://bugs.launchpad.net/bugs/1324810

Title:
  Error conection in import_google

Status in OpenERP Community Backports (Addons):
  New

Bug description:
  When I try to connect with google calendar account this error arises:

  Client Traceback (most recent call last):
    File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 180, in dispatch
      response["result"] = method(controller, self, **self.params)
    File "/home/daniel/openerp/6.1/web/addons/web/controllers/main.py", line 1209, in load
      return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
    File "/home/daniel/openerp/6.1/web/addons/web/controllers/main.py", line 1091, in fields_view_get
      fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
    File "/home/daniel/openerp/6.1/web/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/home/daniel/openerp/6.1/web/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 608, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  Server Traceback (most recent call last):
    File "/home/daniel/openerp/6.1/web/addons/web/common/http.py", line 593, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/daniel/openerp/6.1/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/daniel/openerp/6.1/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 186, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 129, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 195, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/daniel/openerp/6.1/openerp/osv/osv.py", line 183, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 2159, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 1798, in __view_look_dom_arch
      fields = self.fields_get(cr, user, None, context)
    File "/home/daniel/openerp/6.1/openerp/osv/orm.py", line 3363, in fields_get
      res[f] = fields.field_to_dict(self, cr, user, field, context=context)
    File "/home/daniel/openerp/6.1/openerp/osv/fields.py", line 1580, in field_to_dict
      res['selection'] = field.selection(model, cr, user, context)
    File "/home/daniel/openerp/6.1/openerp/addons/import_google/wizard/import_google_data.py", line 79, in _get_group
      groups = gd_client.GetFeed(query.ToUri())
    File "/usr/lib/pymodules/python2.7/gdata/service.py", line 1163, in GetFeed
      result = GDataService.Get(self, uri, extra_headers, converter=converter)
    File "/usr/lib/pymodules/python2.7/gdata/service.py", line 1107, in Get
      'reason': server_response.reason, 'body': result_body}
  RequestError: {'status': 301, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Permanently</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Permanently</H1>\nThe document has moved <A HREF="https://www.google.com/m8/feeds/groups/default/full";>here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Moved Permanently'}

  I have the same error in GTK and Web Client

To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1324810/+subscriptions


Follow ups

References