Skip to Content
Menu
This question has been flagged
2 Replies
9081 Views

In Odoo 8.0 I want to setup google calendar sync. I work with the tutorial through the developers console. Then with Google Calender open on my notebook I hit the "sync button" on calendar view. It asks for permission. That works. But when I hit the button next time - it should sync - it throws this error. It worked some time ago!

Could You give me a hint, where to search? Is it an nginx problem. Is it google api or just wrong handling. Tried for quite some time with different orders - phone or notebook, but the same error.

On the user page, calendar tab the the first three points are filled: "Refresh tokken", "User tokken", "tokken validity" - the last two are not: "Last syncro date"; "calendar ID"

 

Traceback (most recent call last): File "/opt/odoo/openerp/http.py", line 517, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/openerp/http.py", line 535, in dispatch result = self._call_function(**self.params) File "/opt/odoo/openerp/http.py", line 294, 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 291, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/openerp/http.py", line 751, in __call__ return self.method(*args, **kw) File "/opt/odoo/openerp/http.py", line 387, 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 560, in synchronize_events new_ids += self.create_new_events(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 591, in create_new_events st, response, ask_time = self.create_an_event(cr, uid, att.event_id, 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 258, in create_an_event return gs_pool._do_request(cr, uid, url, data_json, headers, type='POST', context=context) File "/opt/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/google_account/google_account.py", line 165, in _do_request raise e HTTPError: HTTP Error 400: Bad Request

Avatar
Discard
Best Answer

Good day. Just had the same issue. Looked at the logs and found this:

Bad google request : {

"error": {

"errors": [

{

"domain": "global",

"reason": "invalid",

"message": "Invalid time zone definition for start time."

},

{

"domain": "global",

"reason": "invalid",

"message": "Invalid time zone definition for end time."

}

],

"code": 400,

"message": "Invalid time zone definition for start time."

}

}

I then went into my Odoo User and saw that my Timezone setting was blank. I then updated my Timezone and after that Google Calendar worked.

Avatar
Discard
Best Answer

I have same problem here, any idea how to solve it?

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 16
4179
0
May 23
1024
1
Mar 17
3542
2
Jan 17
5506
1
Oct 24
113