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 #1453

Closed
dalton5 opened this issue Dec 10, 2020 · 3 comments
Closed

Bug Sequence contains no elements #1453

dalton5 opened this issue Dec 10, 2020 · 3 comments

Comments

@dalton5
Copy link

dalton5 commented Dec 10, 2020

Hi,

I use Akavache and I have a bug related to Rx.net

I have also created a bug report in Akavache reactiveui/Akavache#635

To summarize:

I try to save an object and I have the exception Sequence contains no elements

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

My code issue

await BlobCache.UserAccount.InsertObject(DataStorageKey.CurrentSession_TokenInfo, authenticateResultPersistanceModel);

My exception

image
image

The object I save (access token modified):

image
image

Stack trace:

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

@akarnokd
Copy link
Collaborator

I presume BlobCache.UserAccount.InsertObject completes without producing any value hence the failure. Try using DefaultIfEmpty with some value as a workaround.

@dalton5
Copy link
Author

dalton5 commented Dec 16, 2020

Yes. it did the trick.

Thanks,

@eli191
Copy link

eli191 commented Dec 22, 2022

I did a BlobCache.UserAccount.Vacuum() and it started working again.

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

No branches or pull requests

4 participants