ensembles icon indicating copy to clipboard operation
ensembles copied to clipboard

CDEErrorDomain Code=205 "(null)"

Open zhengwei16 opened this issue 7 years ago • 5 comments

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

zhengwei16 avatar Jun 20 '18 02:06 zhengwei16

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

zhengwei16 avatar Jun 20 '18 03:06 zhengwei16

This looks like a framework issue

zhengwei16 avatar Jun 20 '18 03:06 zhengwei16

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.

drewmccormack avatar Jun 20 '18 06:06 drewmccormack

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

zhengwei16 avatar Jun 20 '18 08:06 zhengwei16

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 [email protected] 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.

drewmccormack avatar Jun 20 '18 11:06 drewmccormack