drewmccormack / ensembles

A synchronization framework for Core Data.
MIT License
1.63k stars 131 forks source link

CDEErrorDomain Code=205 "(null)" #272

Open bug-and-debug opened 6 years ago

bug-and-debug commented 6 years ago

Hi Drew My name is Hans, I am integrating my app with ensemble, I've already purchased v2.2 production version of ensemble. I am using webDAV as a cloud service. Actually I am running my WebDAV server on my local machine for testing purpose. When I run the app first time it gives me CDEErrorDomain Code=205 "(null)" And there is no directory creation on the server storage. When I run the app second time, that error does not occur and the new directory(ensemble events) created on the server storage. Please let me know what is the issue.

Thanks

bug-and-debug commented 6 years ago

I've just found issue. When I create ensemble instance using ensemble = [[CDEPersistentStoreEnsemble alloc] initWithEnsembleIdentifier:@"LabPrototype" persistentStoreURL:storeURL managedObjectModelURL:modelURL cloudFileSystem:cloudFileSystem]; The ensemble instance has the "True" value of Leeched property. Please see the attached screenshot. It happened even I didn't call the method [ensemble leechPersistentStoreWithCompletion:^(NSError *error){}]. That is the when running the app for first time. screen shot 2018-06-20 at 6 16 07 am

bug-and-debug commented 6 years ago

This looks like a framework issue

drewmccormack commented 6 years ago

The leeched property is based on whether Ensembles finds a local cache of data caused by calling leech in an earlier run. Ie. A leech is a persistent property of the ensemble. You do it once, and it stays leeched for future launches.

Could that be happening here? Did you already run the leech method once before during testing?

The way to reset is to call deleech.

bug-and-debug commented 6 years ago

Thank you for your response. I can fix the error by myself. I've just got another issue, I hope you give me some help. When application start, I am inserting around 20~30 objects(like initializing) to the store, and then I am getting this error. I've attached the screenshot. FYI: I am calling [ensemble mergeWithCompletion:^(NSError *error) { }]; every 12 seconds as it is mentioned in the ensemble/webDAV section of the document. Please let me know what are the problems.

Regards. screen shot 2018-06-20 at 11 33 45 am

drewmccormack commented 6 years ago

Are you using Ensembles 2? Do you have the latest version? I think that error should already b be fixed now in the latest version.

Drew

On 20 Jun 2018, at 10:38, Dev Kingdom notifications@github.com wrote:

Thank you for your response. I can fix the error by myself. I've just got another issue, I hope you give me some help. When application start, I am inserting around 20~30 objects(like initializing) to the store, and then I am getting this error. I've attached the screenshot. FYI: I am calling [ensemble mergeWithCompletion:^(NSError *error) { }]; every 12 seconds as it is mentioned in the ensemble/webDAV section of the document. Please let me know what are the problems.

Regards. https://user-images.githubusercontent.com/36750195/41647212-6d972cec-747e-11e8-8296-cf18c139bf01.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drewmccormack/ensembles/issues/272#issuecomment-398670715, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEuAOukAUicFYsRQTRi7J_r5u24XzcBks5t-goDgaJpZM4UugLz.