-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
Installation fails to save: SQLiteConstraintException #266
Comments
Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.
|
HI @wangmengyan95 , similar to that other issue, I'm a bit stumped as to what would cause this, I am not familiar with the internals of parse and didn't expect to get a SQLException. I've included data I captured from 3 users who encountered this, I'm happy to collect more data if you require. Alex |
|
SDK: 1.11.0 Line 195: The whole file: http://pastebin.com/kM2izbX7 |
Hrmm this looks like this is caused by your ParseInstallation save resulting in an objectId that your LDS is already tracking. The only way I could see this occurring right now is that there's a problem with fetching the current Are you able to reproduce this and provide repro steps? We can't really change anything in the SDK to resolve this since we can't propagate why we can't read the current WRT the |
I'm not able to repro this. If you have any insights on how to do that please let me know. "We can't really change anything in the SDK to resolve this since we can't propagate why we can't read the current ParseInstallation" I think a normal solution to this would be to have a non-breaking way to propagate why you can't read the current ParseInstallation. Aggregate exception - nice! |
Yes this would be optimal, but it's not possible without breaking changes. Unfortunately we cannot help in reproducing this since you and your developers are the only ones with a complete understanding of the scope of your app. In addition, without proper steps to reproduce this, we cannot proceed with this issue. Please review our Contributing Guidelines for more information. |
Sorry I'm not sure what you mean.. by definition a "non-breaking way" is non-breaking...? |
This issue is definitely possible to fix, and if you are willing to help I am confident we can get it fixed. Let me know. For example, I could modify your source code, and find a non-breaking way to propagate the actual error, then log it. If you're not willing to do that, I'd appreciate you mentioning why. |
Yes, you're asking for a non-breaking solution to propagate why we can't read from LDS. I'm saying that it would be optimal if this were possible, but it's not possible without breaking changes in our API. I'm willing to help, but we need concise repro steps to do so as per our Contributing Guidelines. |
You're contradicting yourself, a non-breaking solution can't be a breaking change :) Please elaborate. |
To reiterate: it would be great if there was a non-breaking solution, but there isn't. |
That seems pretty unlikely :) If you were willing to help we could brainstorm a creative non-breaking way to get the information out. I mean for starters, you could just log the problem to your server. Maybe there are reasons you don't want to do that, but that is just one of many possible non-breaking ways. (Unless I'm misunderstanding something) |
To add on to my previous comment, it seems like this is happening due to a Changing this to We could add logging, but without being able to reproduce it on a development device we won't have access to those logs. |
"We could add logging, but without being able to reproduce it on a development device we won't have access to those logs." Again, that is just one of many possible solutions if you're interested in helping. If you're not willing to log it to your server, to somewhere you can check, then I can propose another option. Provide a hook for me to log it, and I'll log it to somewhere I can check. |
This issue has not been updated for 7 days. If you have additional information to help pinpoint this issue as an SDK bug, please comment on this issue. We will close this issue in 7 days if no additional information is provided. Thank you for your feedback. |
We are closing this issue due to another 7 days of inactivity. If you have additional information to help pinpoint this issue as an SDK bug, please reopen it with the additional information.Thank you for your feedback. |
I suspect resetting the installation might solve this: http://stackoverflow.com/questions/31890049/parse-push-notifications-how-to-reset-installation-data |
This is happening when the installation is being saved. Here is the data I am capturing about the installation
Another:
And another:
The text was updated successfully, but these errors were encountered: