CloudKit error: Client went away before operation XXXXXX could be validated; failing

All of a sudden my app started getting this CloudKit error, and it happens to a lot of users. I had no changes to cloud sync for months and really surprised by seeing this. What confuses me even more, is that there is no information on the web about this kind of error. I have no idea what causes it and how to solve it. Would love to get any feedback from the CloudKit engineer.

Client went away before operation 27761871408C460A could be validated; failing

{
  "NSUnderlyingError": "<CKUnderlyingError 0x600002573f30: \"ClientInternalError\" (2005); \"Client went away before operation 27761871408C460A could be validated; failing\">",
  "CKErrorDescription": "Client went away before operation 27761871408C460A could be validated; failing",
  "NSDebugDescription": "CKInternalErrorDomain: 2005",
  "NSLocalizedDescription": "Client went away before operation 27761871408C460A could be validated; failing"
}

Seems to happen only on macOS.

The error seems to indicate that the XPC connection between the CloudKit daemon and your app was lost before the daemon was trying to run a CloudKit operation for your app. Since the operation didn't go out, you can't see the error in CloudKit Console.

I am wondering if your app crashed at the moment. A user force quit has the same effect, but doesn't seem likely, because the error "happens to a lot of users".

Other than that, I’d suggest that you file a feedback report, because you don't maintain the XPC connection – If you do so, please share your report ID here for folks to track.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

CloudKit error: Client went away before operation XXXXXX could be validated; failing
 
 
Q