I'm writing an app which adds events from our server to user's Google Calendar using API. And I encountered a HTTP 409 Conflict error following this scenario:
- Create an event with some explicitly defined ID / Events: insert
- Delete the event / Events: delete
- Try to create event with the same ID - get the error.
This scenario can come true when:
- a user exports events from our server.
- one of the events (say with ID = 1) will be disabled on our server
- the user exports again the events - this disabled event will removed from user's Google Calendar / API call: delete, eventId = 1
- the disabled event will be enabled again
- the user performs export - API insert request will be fired with the same ID = 1 . And error 409 will be raised. / API call: insert, eventId = 1
It seems that an event in fact isn't removed after invoking delete
API method.
Is there any workaround for this issue?