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

Could not Parse Json or t is null #9

Closed
NishantWioc opened this issue Jul 5, 2018 · 4 comments
Closed

Could not Parse Json or t is null #9

NishantWioc opened this issue Jul 5, 2018 · 4 comments

Comments

@NishantWioc
Copy link

NishantWioc commented Jul 5, 2018

Repo gives error could not parse json or t is null if the ls.get has a blank data and the further code do not run. i think repo tries to parse a blank data if ls.get data has null value then repo should not try to decrypt the data, this problem occurs only in Mozilla Firefox version 61, i have not tested in older versions

Also the library is not working in Internet Explorer and Microsoft Edge with the invalid argument error

I initialized the object SecureLs in head, i successfully stored the data in local storage with aes is encryption, i closed my browser and opened again and when i reached the page it says t is null, but i was surprised that this happens only in Mozilla Firefox (works fine in chrome and safari)

@softvar
Copy link
Owner

softvar commented Jul 14, 2018

Fixed in v1.2.1. Please check and let me know.

@softvar softvar closed this as completed Jul 14, 2018
@yogeshjain999
Copy link

Still getting Could not parse JSON

@NishantWioc
Copy link
Author

Maybe you're doing something wrong, working fine for me, make sure you set the
isCompression to true or false do not leave it blank, i'm have set it to true

Go to console and fine the line where error comes Could not parse json, and print the variable in library and check what type of data you are getting

@softvar
Copy link
Owner

softvar commented Jul 23, 2018

@yogeshjain999 Please clear the localStorage first and then try again. It should work.

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

No branches or pull requests

3 participants