Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDEErrorDomain Code=205 "(null)" #272

Open
bug-and-debug opened this issue Jun 20, 2018 · 5 comments
Open

CDEErrorDomain Code=205 "(null)" #272

bug-and-debug opened this issue Jun 20, 2018 · 5 comments

Comments

@bug-and-debug
Copy link

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
Copy link
Author

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
Copy link
Author

This looks like a framework issue

@drewmccormack
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

drewmccormack commented Jun 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants