Dear all,
I'm running Odoo on a virtual private ubuntu server and it works great.
I'm trying to synchronize my Odoo calendar with my Google Apps calendar.
I've went to the google api, got my secret code and ID and set this :
URI redirection :
http://mywebsite.com
http://mywebsite:com:8069/google_account/authentication
URi javascript :
http://mywebsite.com
http://mywebsite:com:8069/
And yet I have the following message when I click on "Sync with Google":
Traceback (most recent call last): File "/opt/odoo/openerp/http.py", line 500, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/openerp/http.py", line 517, in dispatch result = self._call_function(**self.params) File "/opt/odoo/openerp/http.py", line 283, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/openerp/http.py", line 280, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/openerp/http.py", line 733, in __call__ return self.method(*args, **kw) File "/opt/odoo/openerp/http.py", line 376, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/google_calendar/controllers/main.py", line 43, in sync_data return gc_obj.synchronize_events(request.cr, request.uid, [], context=kw.get('local_context')) File "/opt/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/google_calendar/google_calendar.py", line 535, in synchronize_events st, current_google, ask_time = self.get_calendar_primary_id(cr, uid, context=context) File "/opt/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/google_calendar/google_calendar.py", line 284, in get_calendar_primary_id if (e.code == 401): # Token invalid / Acces unauthorized AttributeError: 'Warning' object has no attribute 'code'
Hello, Can you check that you have no trailing whitespace in your google_id and google_secret_key...
It's seems that your token are invalid, if you are in this function, your google api seems to be ok (or was ok at one moment)... but now something seems broken. Can you try with another user to be sure that the error is just for your user... Best regards JKE
Hello, i've checked : no whitespace, and it doesn't work with any user...