Skip to content

Unhandled Exception: NoSuchMethodError: Class 'ParseObject' has no instance method '[]' #118

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

Closed
zakiso opened this issue Mar 15, 2019 · 12 comments

Comments

@zakiso
Copy link

zakiso commented Mar 15, 2019

hi @phillwiggins I already read the #114 issue.
If I use v1.0.15, I will got #93 error.
So I'm use this verison

parse_server_sdk:
    git: git://github.com/phillwiggins/flutter_parse_sdk.git

I try to uninstall my app. But problem still exist.
937291F4-D8BE-4419-A06F-A987675AC1DE

B9EA0955-2188-4F75-B5C3-12F71B45F7CB

@zakiso
Copy link
Author

zakiso commented Mar 15, 2019

Can you give me some advice? Thanks a lot.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 15, 2019 via email

@zakiso
Copy link
Author

zakiso commented Mar 15, 2019

Sorry, maybe it my cache problem. I switch to version v1.0.15 and use xcode open ios project clean and reinstall. Everything is work.
Thanks a lot.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 15, 2019 via email

@zakiso
Copy link
Author

zakiso commented Mar 17, 2019

Sorry ,this problem is still exist.
When I reopen my app call ParseUser.currentUser() function that will be call _getUserFromLocalStore().
This is my localStorage data
8E6D7E72-CB30-4DD0-8D10-30C55CF3BAA9
This data contains key __type,so it will be parsed as a ParseObject by parseDecode function.
Then userMap call [] function will get error NoSuchMethodError: Class 'ParseObject' has no instance method '[]'

CC528150-7327-4F23-BB01-E591582EE1FA

@phillwiggins
Copy link
Member

phillwiggins commented Mar 17, 2019 via email

@zakiso
Copy link
Author

zakiso commented Mar 17, 2019

Remove the ParseUser toString() function can fix this bug.
But I don't know if this operation will cause other problem.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 17, 2019 via email

@zakiso
Copy link
Author

zakiso commented Mar 17, 2019

If this operation is ok, I can request a PR.

Then, I have a another question. Can our local storage engine switch form sharedPreference to sqlite?
Thanks a lot.
👍

@phillwiggins
Copy link
Member

phillwiggins commented Mar 17, 2019 via email

@zakiso
Copy link
Author

zakiso commented Mar 17, 2019

Cool.
Very looking forward new local data storage engine. I will storage a lots of data to local.
Appreciate your work. Thanks a lot.
💯

@phillwiggins
Copy link
Member

phillwiggins commented Mar 17, 2019 via email

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

2 participants