-
-
Notifications
You must be signed in to change notification settings - Fork 117
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] Cant write value with SetItemAsync(), v2.1.4 #65
Comments
Hi @daniel-rck, are you sure it broke with v2.1.4? There were no changes to the |
On my side there were also no changes besides the LocalStorage-Nuget. |
Yes, please do. Either DM me it on Twitter or there is a contact form on my website via the Speaking page. |
@daniel-rck I've used your JWT in the sample app and it has saved to local storage fine, without any errors. |
I have exactly the same problem. For example this, in new version this is not working for me. It was working ok on previous version. .SetAsync("Blablabla", "6QLE0LL7iw7tHPAwold31qUENt3lVTUZxDGqeXQFx38=");
|
What i see is that setitemasync is believing that i'm trying to save an int, instead a string. |
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. |
The problem comes from LocalStorageService.cs, Line 183, when EDIT: I thought about it, maybe a simple try-catch would be enough, when the T of GetItemAsync is object? |
The problem is that when I've added a new internal version of |
Yep, removing this condition works for me too. The checks for JSON start and end should be enough imho. |
@daniel-rck @soltrac The issues should be resolved in the latest release. Let me know if you experience any further issues. |
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. TryingGetItemAsync<string>
. I will stay to v2.1.3, that version is still working.To Reproduce
Steps to reproduce the behavior:
Screenshots
Hosting Model (is this issue happening with a certain hosting model?):
Additional context
The text was updated successfully, but these errors were encountered: