Hello,
I followed Google Calendar Integration in order to link google calendar to my erpnext system and all went fine, I authorized the app and everything says all is good.
In the same time, once activated, I get nothing syncronized in my google calendar, and a bench of errors gets into the Error Log :
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/data_migration/doctype/data_migration_connector/connectors/calendar_connector.py”, line 42, in _create_calendar
created_calendar = self.gcalendar.calendars().insert(body=calendar).execute()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/googleapiclient/_helpers.py”, line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/googleapiclient/http.py”, line 837, in execute
method=str(self.method), body=self.body, headers=self.headers)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/googleapiclient/http.py”, line 162, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/google_auth_httplib2.py”, line 187, in request
self._request, method, uri, request_headers)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/google/auth/credentials.py”, line 122, in before_request
self.refresh(request)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/google/oauth2/credentials.py”, line 129, in refresh
'The credentials do not contain the necessary fields need to ’
RefreshError: The credentials do not contain the necessary fields need to refresh the access token. You must specify refresh_token, token_uri, client_id, and client_secret.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/data_migration/doctype/data_migration_connector/connectors/calendar_connector.py”, line 142, in insert_events
remote_event = self.gcalendar.events().insert(calendarId=self.account.gcalendar_id, body=event).execute()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/googleapiclient/discovery.py”, line 730, in method
raise TypeError(‘Missing required parameter “%s”’ % name)
TypeError: Missing required parameter “calendarId”
{‘event’: None, ‘retry’: 0, ‘log’: <function log at 0x7fedd14a3758>, ‘site’: u’manager’, ‘job_name’: u’frappe.utils.background_jobs.run_doc_method’, ‘method_name’: u’frappe.utils.background_jobs.run_doc_method’, ‘method’: <function run_doc_method at 0x7fedd33182a8>, ‘user’: u’Administrator’, ‘kwargs’: {‘doc_method’: u’run_current_mapping’, ‘name’: u’6f2c6d8f7b’, ‘doctype’: u’Data Migration Run’}, ‘is_async’: True}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 101, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 80, in run_doc_method
getattr(frappe.get_doc(doctype, name), doc_method)(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/data_migration/doctype/data_migration_run/data_migration_run.py”, line 73, in run_current_mapping
raise e
TypeError: Missing required parameter “calendarId”