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

[BUG] Sequence contains no elements #635

Open
dalton5 opened this issue Dec 10, 2020 · 10 comments
Open

[BUG] Sequence contains no elements #635

dalton5 opened this issue Dec 10, 2020 · 10 comments
Labels

Comments

@dalton5
Copy link

dalton5 commented Dec 10, 2020

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

@gsgou
Copy link

gsgou commented Feb 12, 2021

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

@matanshapira
Copy link

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

@MarkLFT
Copy link

MarkLFT commented Sep 14, 2021

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

@glennawatson
Copy link
Contributor

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

@MarkLFT
Copy link

MarkLFT commented Sep 14, 2021

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?

@glennawatson
Copy link
Contributor

glennawatson commented Sep 14, 2021

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.

@MarkLFT
Copy link

MarkLFT commented Sep 14, 2021

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

@heronbpv
Copy link

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.

@glennawatson
Copy link
Contributor

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

@Meekohi
Copy link

Meekohi commented Jun 27, 2023

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

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

No branches or pull requests

7 participants