Reputation: 602
Getting the below error frequently from server.
Error Domain=kCFErrorDomainCFNetwork Code=303 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 303.)" UserInfo=0x18a41d20 {NSErrorFailingURLKey=https://s3.amazonaws.com/Multimedia/Audios/20150428/AUDIO_CB0F4CAF-C921-46B6-AEC2-1FA6B7FB91A0.wav, NSErrorFailingURLStringKey=https://s3.amazonaws.com/Multimedia/Audios/20150428/AUDIO_CB0F4CAF-C921-46B6-AEC2-1FA6B7FB91A0.wav}
Can any one tell me what is the cause for the issues?
Regards, Chandrika
Upvotes: 0
Views: 6541
Reputation: 166
It's a kCFErrorHTTPParseFailure error. Could you provide more details such as:
-Are you trying to upload or download a file?
-Are you using AWSS3TransferManager, AWSS3 or AWSPresignedURL to perform the uploading or downloading?
-Does it happen every time? If not, what is the percentage?
-A code snippet
Upvotes: 0
Reputation: 2926
It's a parsing issue. You can look up the error code here (Under CFNetworkErrors Constants): https://developer.apple.com/library/mac/documentation/Networking/Reference/CFNetworkErrors/index.html#//apple_ref/c/tdef/CFNetworkErrors
And the issue has also been discussed here: what is kCFErrorDomainCFNetwork Code=303
In short words, the server is raising this error because you probably have encoding issues or perhaps is using the wrong HTTP method.
Upvotes: 1