Akavache
Akavache copied to clipboard
[BUG] Sequence contains no elements
Hi,
I try to save an object and I have the exception Sequence contains no elements
The details are below if you can help because I can't sort it out.
It works well when I save other objects.
My code issue
await BlobCache.UserAccount.InsertObject(DataStorageKey.CurrentSession_TokenInfo, authenticateResultPersistanceModel);
My exception
The object I save (access token modified):
Stack trace:
at System.Reactive.Subjects.AsyncSubject`1[T].GetResult () [0x00056] in /_/Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:441 at
Happens to me with .GetObject too when i have types like IDictionary<string, string> Dictionary<string, string> shouldn't be instead thrown the KeyNotFoundException?
Happens to me also rarely with InsertObject. Any update or workaround @dalton5 ?
I am experiencing this also. All GetObject and InsertObjects throw this exception. Does anyone have a workaround for fix for this?
been working on a rewrite of Akavache although it's still very raw at the moment.
There isn't a concept of "BlobCache.Accounts" at the moment
Thanks for the feedback. I am getting this issue with BlobCache.Localmachine also, not only BlobCache.UserAccount. Not sure if that indicates a different problem?
https://github.com/reactivemarbles/cachedatabase for a preview
A lot of RxUI stuff is getting a refresh in that ReactiveMarbles and it will have separate release cycles but it will be more of a "rewrite". Most of the effort will be going into that repo in the future.
I will implement the concept of BlobCache over the weekend so people can start trailing it.
GitHub
Contribute to reactivemarbles/CacheDatabase development by creating an account on GitHub.
OK, many thanks. This seems like a great product, many thanks for providing it.
been working on a rewrite of Akavache although it's still very raw at the moment.
Is there any place where we could take a look at the planning for this rewrite, and the rationale behind it? I see this is also happening with the Events packages, just wondering if there's more info on this.
@heronbpv nothing that can be made public at this time.
Can someone explain what the problem is here and how to work around it? Seems like a major unaddressed bug?