Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SaveEventually doesn't work as expected #1688

Open
4 tasks done
sidan5 opened this issue Jan 21, 2023 · 1 comment
Open
4 tasks done

SaveEventually doesn't work as expected #1688

sidan5 opened this issue Jan 21, 2023 · 1 comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@sidan5
Copy link

sidan5 commented Jan 21, 2023

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

@parse-github-assistant
Copy link

parse-github-assistant bot commented Jan 21, 2023

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza transferred this issue from parse-community/parse-server Jan 21, 2023
@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants