Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

[BUG] Sequence contains no elements

Open dalton5 opened this issue 4 years ago • 10 comments

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

image

The object I save (access token modified):

image

Stack trace:

at System.Reactive.Subjects.AsyncSubject`1[T].GetResult () [0x00056] in /_/Rx.NET/Source/src/System.Reactive/Subjects/AsyncSubject.cs:441 at

dalton5 avatar Dec 10 '20 04:12 dalton5

Happens to me with .GetObject too when i have types like IDictionary<string, string> Dictionary<string, string> shouldn't be instead thrown the KeyNotFoundException?

gsgou avatar Feb 12 '21 16:02 gsgou

Happens to me also rarely with InsertObject. Any update or workaround @dalton5 ?

matanshapira avatar May 09 '21 09:05 matanshapira

I am experiencing this also. All GetObject and InsertObjects throw this exception. Does anyone have a workaround for fix for this?

MarkLFT avatar Sep 14 '21 01:09 MarkLFT

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

glennawatson avatar Sep 14 '21 01:09 glennawatson

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?

MarkLFT avatar Sep 14 '21 02:09 MarkLFT

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.

glennawatson avatar Sep 14 '21 02:09 glennawatson

OK, many thanks. This seems like a great product, many thanks for providing it.

MarkLFT avatar Sep 14 '21 02:09 MarkLFT

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 avatar Sep 14 '21 14:09 heronbpv

@heronbpv nothing that can be made public at this time.

glennawatson avatar Sep 14 '21 21:09 glennawatson

Can someone explain what the problem is here and how to work around it? Seems like a major unaddressed bug?

Meekohi avatar Jun 27 '23 14:06 Meekohi