Deleting task does not call completion handler

112 views
Skip to first unread message

MobileKaz

unread,
Sep 18, 2012, 5:41:19 AM9/18/12
to google-api-obj...@googlegroups.com
Hi, 

I'm using this code to delete a task, which has been working for months until several days ago:

GTLQueryTasks *query = [GTLQueryTasks queryForTasksDeleteWithTasklist:task.listIdentifier task:task.identifier];

self.editTaskTicket = [tasksService executeQuery:query completionHandler:^(GTLServiceTicket *ticket, id item, NSError *error) {

    // callback

    ...

}];   


When I call this, the task is deleted successfully, but the completion handler is never called. 

Has anybody seen this problem before? 

MobileKaz

unread,
Sep 18, 2012, 7:43:45 AM9/18/12
to google-api-obj...@googlegroups.com
Further test shows that there's an assertion error:

*** Assertion failure in +[GTLObject objectForJSON:defaultClass:surrogates:batchClassMap:](), /Users/aesthology/iPhone/Live/Organizer/Classes/GTasks/Objects/GTLObject.m:538


which points to this line:


GTL_ASSERT([json count] != 0, @"Creating object from empty json");

Greg Robbins

unread,
Sep 21, 2012, 8:24:35 PM9/21/12
to google-api-obj...@googlegroups.com
The API servers changed to return empty result objects, and and the change is triggered an assert in debug builds of the library. This was fixed in the library a few weeks ago; try updating your sources with subversion.


Reply all
Reply to author
Forward
0 new messages