Skip to content

findObjectsInBackgroundWithBlock returning empty array #985

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
naresh-wal opened this issue Jul 20, 2016 · 6 comments
Closed

findObjectsInBackgroundWithBlock returning empty array #985

naresh-wal opened this issue Jul 20, 2016 · 6 comments

Comments

@naresh-wal
Copy link

We had same issue year ago(12th July 2015), we filed this issue in Facebook. at that time it was resolved. But now the same issue is surfacing again. Unfortunately that Facebook bug info is not available at this time, but we have all conversion in the from of pdf. I can not reveal all those info here.
Any help?

@shiva-wal
Copy link

Please find more info at https://developers.facebook.com/bugs/1239018396132432

@nlutsenko
Copy link
Contributor

Looks like your issue is related to Parse.com and not a client SDK.
Closing this issue, as the conversation is more relevant on the linked FB bug.

@naresh-wal
Copy link
Author

We have already posted in Facebook they said its not Facebook issue and asked us to post in SDK repositories in Github.

Here is the problem:

Please see the attached screenshot of the parse table. It shows that there exists user with the email "[email protected]". However, the following query is not returning any result although there exists a row for that user in parse. So it seems to be a bug on parse. Can you please look into this? It's affecting all of our app users, I would really appreciate if you can look into this. Thanks in advance.

PFQuery *query = [PFQuery queryWithClassName:@"LoginTable"];
[query whereKey:@"Email" equalTo:@"[email protected]"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (!error) {
} else {
}
}];

screen shot 2016-07-22 at 5 45 43 pm

@acegreen
Copy link

try query.whereKey("Email", containsString: "[email protected]")
Also check that your db entry doesn't include a space at the end.

@naresh-wal
Copy link
Author

Thanks @acegreen its working.

@acegreen
Copy link

Just for educational proposals, what ended up working?

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

4 participants