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
Chunking the syncing process to less than 400 ops/request still leads to error: ErrorHandler.Chunk: Limit Exceeded: the request to the server is too large.CKError.Code: 27
#143
Open
jamesryu108 opened this issue
Jun 13, 2019
· 2 comments
· May be fixed by #175
I am inside of syncRecordsToCloudKit function of SyncEngine class. Inside the completion block called modifyRecordsCompletionBlock of modifyOpe, chunkItUp function is used to request less than 400 operations on a single request:
let chunkedRecords = recordsToStore.chunkItUp(by: 300)
print("CHUNKING BY: \(chunkNumber)")
for chunk in chunkedRecords {
print("chunk: \(chunk.count)")
self.syncRecordsToCloudKit(recordsToStore: chunk, recordIDsToDelete: recordIDsToDelete, completion: completion)
}
This should sync data 300 ops at a time without a problem.
Actual behavior(optional)
However, I get an error message as if I went over 400 operations per request:
ErrorHandler.Chunk: Limit Exceeded: the request to the server is too large.CKError.Code: 27
Expected behavior
I am inside of
syncRecordsToCloudKit
function ofSyncEngine
class. Inside the completion block calledmodifyRecordsCompletionBlock
ofmodifyOpe
,chunkItUp
function is used to request less than 400 operations on a single request:This should sync data 300 ops at a time without a problem.
Actual behavior(optional)
However, I get an error message as if I went over 400 operations per request:
This problem results in not even single data being synced to the iCloud. How do we bypass this problem?
The text was updated successfully, but these errors were encountered: