You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workaround: Call [contextToSave save:&localError]; on main thread
if (! [self isCancelled]) { dispatch_async(dispatch_get_main_queue(), ^{
success = [contextToSave save:&localError];
if (! success && localError == nil) RKLogWarning(@"Saving of managed object context failed, but a nil value for the error argument was returned. This typically indicates an invalid implementation of a key-value validation method exists within your model. This violation of the API contract may result in the save operation being mis-interpretted by callers that rely on the availability of the error."); });
} else {
// We have been cancelled while the save is in progress -- bail
success = NO;
}
The text was updated successfully, but these errors were encountered:
RKManagedObjecyRequestOperation.m
Workaround: Call [contextToSave save:&localError]; on main thread
if (! [self isCancelled]) {
dispatch_async(dispatch_get_main_queue(), ^{
success = [contextToSave save:&localError];
if (! success && localError == nil) RKLogWarning(@"Saving of managed object context failed, but a
nil
value for theerror
argument was returned. This typically indicates an invalid implementation of a key-value validation method exists within your model. This violation of the API contract may result in the save operation being mis-interpretted by callers that rely on the availability of the error.");});
} else {
// We have been cancelled while the save is in progress -- bail
success = NO;
}
The text was updated successfully, but these errors were encountered: