Parse-SDK-iOS-OSX icon indicating copy to clipboard operation
Parse-SDK-iOS-OSX copied to clipboard

SaveEventually doesn't work as expected

Open sidan5 opened this issue 1 year ago • 1 comments

New Issue Checklist

Issue Description

When using SaveEventually on iOS SDK 1.19.4 it doesn't work as expected using mongoDB 5.0.14

Steps to reproduce

Saving something to user table with anonymous user (tested only anonymous).

Example function:

-(void)setBoolParameter : (NSString *)parameterString withBool:(BOOL)boolToSet{
    self[parameterString] = [NSNumber numberWithBool:boolToSet];

    [self saveEventually:^(BOOL succeeded, NSError *error) // This doen't work and the block never runs. if using saveInBackgroundWithBlock it would work
     {
         if (error != nil)
         {
             NSLog(@"Error: User %@ update UNSUCCESFULL", parameterString);
         }
         else {
             NSLog(@"User %@ Succesfully Updated",parameterString);
         }
     }];
}

Actual Outcome

The values won't save, ever.

Expected Outcome

The values should be saved when possible (when there is a network connection etc.).

Environment

Server

  • Parse Server version: 5.4.0
  • Operating system: node16
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): AWS

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 5.0.14
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB Atlas

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): iOS
  • SDK version: 1.19.4

Logs

sidan5 avatar Jan 21 '23 09:01 sidan5