User is not exist

Does anyone know I am getting the following error?

FAULT (SYNC): FAULT = ‘3100’ [user is not exist] <backendless user is not exist> FAULT (SYNC): FAULT = ‘3100’ [user is not exist] <backendless user is not exist>

This is currently what my login method looks like:

  • (void)userLogin {
    @try {

      [backendless.userService login:self.loginInput.text password:self.passwordInput.text];
      
      NSLog(@"Current User = %@", backendless.userService.currentUser);
      [self.view endEditing:YES];
      
      [self performSegueWithIdentifier:@"whichuser" sender:self];
    

    }
    @catch (Fault *fault) {
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"%@", fault.message] message:nil preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *dismissButton = [UIAlertAction actionWithTitle:@“Dismiss” style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
    }];
    [alertController addAction:dismissButton];
    [self presentViewController:alertController animated:YES completion:nil];

    }

}

Amar,

Perhaps you’re trying to login a user that has not registered and thus does not exist in your backend. Check the Users table in Backendless console and see if there user you login indeed exists in the table.

Mark

Hi Amar,

You cannot get FAULT = ‘3100’ on
[backendless.userService login:self.loginInput.text password:self.passwordInput.text];

but you can get it on another UserService methods:

-(BackendlessUser *)registering:(BackendlessUser *)user;

-(BackendlessUser *)update:(BackendlessUser *)user;
if user == nil;

-(NSNumber *)isValidUserToken;
if currentUser == nil;
i.e. it is logged out or user session is expired (if ‘Enable Session Timeout’ option is switched ON in your backendless app):
http://support.backendless.com/public/attachments/101afbb03c2ae984b7f8c3c81f9ca11c.png&lt;/img&gt;

Regards,
Slava