question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Cant write value with SetItemAsync(), v2.1.4

See original GitHub issue

Describe the bug When I try to save a jsonToken with ILocalStorageService.SetItemAsync() a exception is thrown (I hope you can see something in the screenshot). My jsonToken was not saved. Trying GetItemAsync<string>. I will stay to v2.1.3, that version is still working.

To Reproduce Steps to reproduce the behavior:

  1. Update Blazored.LocalStorage to v2.1.4
  2. Try to save a string value
  3. Catch exception
  4. Try read value, see wrong value.

Screenshots grafik

Hosting Model (is this issue happening with a certain hosting model?):

  • Blazor WebAssembly

Additional context

    <PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview3.20168.3" />
    <PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="3.1.3" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-preview3.20168.3" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-preview3.20168.3" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-preview3.20168.3" />

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
chrissaintycommented, Mar 31, 2020

Ok, so it looks like the changes made to fix #57 and subsequent bug fixes have broken things for others.

I would suggest @soltrac and @daniel-rck go back to an earlier version of the library and I’ll have a think about what to do.

1reaction
chrissaintycommented, Apr 1, 2020

@daniel-rck @soltrac The issues should be resolved in the latest release. Let me know if you experience any further issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NativeModule: AsyncStorage is null · Issue #768
I am using version 1.17.7 for the async storage, and 0.68.2 for RN.
Read more >
Can't use the returned Email & Token from AsyncStorage ...
My code is returning a value as expected! I'm building an app in React-Native and am currently working on the login. I need...
Read more >
Getting logged out in React Native · Issue #7944
Describe the bug We use amplify-js 3.3.20 in our React Native app and some of our users are getting logged out from once...
Read more >
SecureStore - Expo Documentation
A library that provides a way to encrypt and securely store key-value pairs locally on the device.
Read more >
Recent Threads - Xamarin Community Forums
I'm creating a grid in xamarin form in which I'm implementing buttons using a list values that a I want to change throught...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found