Share Extension Errors URLErrorDomain -1 & URLErrorDomain -997 when uploading using AWSS3

Some institutions are seeing these errors when uploading using our share extension and this occurs on 100s of iPads on iOS 16.x. Rebooting the device is the only way to get it working again, but fails soon after. It is occurring on most but not all devices.

This appears isolated and most users are not reporting any issues at all and to date we cannot reproduce this issue in-house.

Here is the isolated console trace of the issue:

And here is the isolated console trace of it working:

It's worth noting that some institutions use MDMs to manage their devices.

What environmental conditions could cause this issue be caused intermittently? Is it truly an Apple daemon bug and out of my hands?

Replies

Error -997 is NSURLErrorBackgroundSessionWasDisconnected. There are a variety of potential issues related to this. One common one is that the daemon that acts as the back-end to your background sessions, nsurlsessiond, has crashed.

Are you able to get a sysdiagnose log from one of the affected devices? If so, unpack it and see if there are any crash reports for nsurlsessiond.

For more info on sysdiagnose logs, see Bug Reporting > Profiles and Logs.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"