Start a new topic

Problems with KCSUser refreshFromServer

Sometimes when I try to refresh the activeUser I get an error that the user I am trying to refresh is not actually the active user. Here is the code I'm using:

KCSUser *user = [KCSUser activeUser];

if (user) {

[user refreshFromServer:^(NSArray *objectsOrNil, NSError *errorOrNil) {}];


And the error:

Error Domain=KCSUserErrorDomain Code=60008 "User refresh is not on active user" UserInfo=0x113a06980 {NSLocalizedDescription=User refresh is not on active user}

And I have a valid KCSUser object, and you can see that I also did get valid objects back from the server in objectsOrNil. Shouldn't the error and objects returned be mutually exclusive?

![]( "")

1 Comment

How often is sometimes? Is there any correlation between when these happen? Is the user object updated outside of the device?
Login or Signup to post a comment