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

Saving issue - NSSQLiteErrorDomain error 13 #1337

Open
pmiotto opened this issue Oct 11, 2018 · 1 comment
Open

Saving issue - NSSQLiteErrorDomain error 13 #1337

pmiotto opened this issue Oct 11, 2018 · 1 comment

Comments

@pmiotto
Copy link

pmiotto commented Oct 11, 2018

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)
        })

Any insights would be appreciated.

@messi
Copy link

messi commented Jun 21, 2021

In case someone is googling that error and is finding this issue: most likely related to having not sufficient disk space left on the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants