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

ParsePush.subscribeInBackground issue #477

Closed
leonluc-dev opened this issue Jun 12, 2016 · 1 comment
Closed

ParsePush.subscribeInBackground issue #477

leonluc-dev opened this issue Jun 12, 2016 · 1 comment

Comments

@leonluc-dev
Copy link

Currently the ParsePush.subscribeInBackground and ParsePush.unsubscribeInBackground methods seem to be broken. Whenever the application calls these methods the task returns with the following exception:

com.parse.ParseRequest$ParseRequestException: objects to add must be an array
at com.parse.ParseRequest.newPermanentException(ParseRequest.java:270)
at com.parse.ParseRESTCommand.onResponseAsync(ParseRESTCommand.java:301)
at com.parse.ParseRequest$3.then(ParseRequest.java:137)
at com.parse.ParseRequest$3.then(ParseRequest.java:133)
at bolts.Task$15.run(Task.java:917)
at bolts.BoltsExecutors$ImmediateExecutor.execute(BoltsExecutors.java:105)
at bolts.Task.completeAfterTask(Task.java:908)
at bolts.Task.continueWithTask(Task.java:715)
at bolts.Task.continueWithTask(Task.java:726)
at bolts.Task$13.then(Task.java:818)
at bolts.Task$13.then(Task.java:806)
at bolts.Task$15.run(Task.java:917)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

This issue does not occur on the iOS or JavaScript SDK equivalent of these methods connected to the same server.

@leonluc-dev
Copy link
Author

leonluc-dev commented Jun 26, 2016

Turns out it was a very specific issue in parse-server 2.2.13, only surfacing in the type of call the Android SDK uses to update its subscriptions. It was fixed in parse-server 2.2.14.

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

1 participant