-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Comments
Can you give me some advice? Thanks a lot. |
In all honesty I'm a bit confused.
I will have to run tests tonight but that issue should be fixed.
…On Fri, Mar 15, 2019, 15:30 炸鸡叔 ***@***.***> wrote:
Can you give me some advice? Thanks a lot.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3s1J0rFQOskgxSVyJcjXOfW3Pxioks5vW7yhgaJpZM4b2uMr>
.
|
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. |
Oh cool.
All sorted!
…On Fri, Mar 15, 2019, 15:50 炸鸡叔 ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3tOQgo01cDDMnuLul80E4sR6UkLlks5vW8FFgaJpZM4b2uMr>
.
|
Hey
Apologies, I have noticed in the last release a contributor had actually
created a bug. This will be fixed in v1.0.16
…On Sun, 17 Mar 2019 at 14:28, 炸鸡叔 ***@***.***> wrote:
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
[image: 8E6D7E72-CB30-4DD0-8D10-30C55CF3BAA9]
<https://user-images.githubusercontent.com/5389326/54492610-15253400-4903-11e9-95c1-5df4c4ab3de5.png>
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 '[]'
[image: CC528150-7327-4F23-BB01-E591582EE1FA]
<https://user-images.githubusercontent.com/5389326/54492674-9250a900-4903-11e9-8242-5f68bd3aff98.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3serrD9XowATiNd7u2Bw7HuM-_D9ks5vXlEegaJpZM4b2uMr>
.
--
Kind Regards
Phill Wiggins
[email protected]
|
Remove the ParseUser toString() function can fix this bug. |
The problem was that that the toJson method had been overwritten for the
ParseUser class. When saving locally, the SDK will convert the ParseUser
object to a Json string and save that in shared_preferences. Due to the
toJson method being changed, it was converting the ParseUser to a pointer
before saving rather than the full object as a Json string.
…On Sun, 17 Mar 2019 at 15:27, 炸鸡叔 ***@***.***> wrote:
Remove the ParseUser toString() function can fix this bug.
But I don't know if this operation will cause other problem.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3hXmg2cnmX4Kd9MhUm0H-zL44DdWks5vXl7ZgaJpZM4b2uMr>
.
--
Kind Regards
Phill Wiggins
[email protected]
|
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? |
I have already made the changes as part of v1.0.16.
I wouldn't recommend Sqflite for this project. I will be swapping it out
and using a NoSql based storage, possibly Sembast as a local cache so that
the SDK can be pure dart based rather than just Flutter.
…On Sun, Mar 17, 2019, 15:33 炸鸡叔 ***@***.***> wrote:
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.
👍
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3qoxVLsGHU_jYcG3L3UEbFKOUYEnks5vXmBOgaJpZM4b2uMr>
.
|
Cool. |
Your very welcome. It will be a little while before this local cache
changes, based on all the NoSql libraries being very reliable yet.
…On Sun, Mar 17, 2019, 15:50 炸鸡叔 ***@***.***> wrote:
Cool.
Very looking forward new local data storage engine. I will storage a lots
of data to local.
Appreciate your work. Thanks a lot.
💯
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgn3kn7KmJvRwl4A7lE6Mp6el5tHAvwks5vXmRXgaJpZM4b2uMr>
.
|
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
I try to uninstall my app. But problem still exist.

The text was updated successfully, but these errors were encountered: