I have an app currently live with high volume of daily users (100k +). Every time the app opens it tries to save a small json from an endpoint to coredata. It works 99.9% of the times but sometimes I get the following errors:
• The operation couldn’t be completed. (NSSQLiteErrorDomain error 13.)
• The operation couldn’t be completed. (Cocoa error 13.)
• The file “” couldn’t be opened.
from this block of code:
MagicalRecord.save({ context in
User.mr_truncateAll(in: context)
users.forEach({ user in
if let item = Prize.mr_createEntity(in: context) {
item.name = user.name
}
})
}, completion: { (_: Bool, error: Error?) in
Log(error.localizedDescription)
})
I have an app currently live with high volume of daily users (100k +). Every time the app opens it tries to save a small json from an endpoint to coredata. It works 99.9% of the times but sometimes I get the following errors: • The operation couldn’t be completed. (NSSQLiteErrorDomain error 13.) • The operation couldn’t be completed. (Cocoa error 13.) • The file “” couldn’t be opened.
from this block of code:
Any insights would be appreciated.