Skip to content

SaveEventually doesn't work as expected #1688

Open
@sidan5

Description

@sidan5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions