Our app includes a share extension that allows you to share images which are uploaded and stored in S3. Prior to iOS 15 this generally worked without any issues.
I am now getting the following error with the background upload session, but only after the first share.
An error occurred on the xpc connection requesting pending callbacks for the background session: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 126 named com.apple.nsurlsessiond"
In other words if I share 5 images they all upload fine. If I try to upload an additional 5 the first one usually succeeds and the rest all fail with the above error.
Wondering if anyone else has seen this issue and has any thoughts on how to address this.