As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I'm new to Kinvey, so this is probably a simple fix. For whatever reason, I am unable to return any results when querying the user collection. I don't get any errors, just a blank array. I can query other collections fine, so this problem seems specific to the user collection. I've set-up the userStore like this.
I need to revise my question a bit--I actually am getting an error on the query now. I don't think I was before, but maybe I read the log wrong. Anyway, here's the error I get now.
Error Domain=KCSAppDataErrorDomain Code=404 "This user does not exist for this app backend"
This is strange since I've got multiple users showing in the backend. All help is appreciated.
T
Tyler Bandy
said
over 9 years ago
I switched to Kinvey 1.24 and the user query works fine. There seems to be a bug related to user queries in 1.25.
M
Mike
said
over 9 years ago
HI Tyler,
This is a bug in KinveyKit 1.25. We are working on a fix.
C
Caroline
said
over 9 years ago
Hi Tyler,
The 1.26 releas is out. http://devcenter.kinvey.com/ios/downloads
Tyler Bandy
self.userStore = [KCSAppdataStore storeWithCollection:[KCSCollection userCollection] options:nil];
Here's an example query that should return all of the users, but returns zero objects instead.
KCSQuery *userQuery = [KCSQuery query];
[self.userStore queryWithQuery:userQuery withCompletionBlock:^(NSArray *users, NSError *errorOrNil) {
if (!errorOrNil) {
int numberUsers = users.count;
NSLog(@"no error -- found %i users", numberUsers);
} else {
NSLog(@"error: %@", errorOrNil);
}
} withProgressBlock:nil];
I'm using Kinvey 1.25. Thanks for any help.