You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
🚀 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
transferred this issue from parse-community/parse-server
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:
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
5.4.0
node16
AWS
Database
MongoDB
5.0.14
MongoDB Atlas
Client
iOS
1.19.4
Logs
The text was updated successfully, but these errors were encountered: