Alamofire.AFError.sessionTaskFailed

Hi there, We need help with one issue. Sometimes our post API request are having the following error. I checked the server logs and seems everything okay in Apache and PHP logs. Seems something wrong with out almofire libraray

Here is the error that we are having

[Result]: failure(Alamofire.AFError.sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x28139c840 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x297c79400 [0x1ebb61860]>{length = 16, capacity = 16, bytes = 0x100201bb4834ca170000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask .<264>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalUploadTask .<264>" ), NSLocalizedDescription=The network connection was lost.,

Hello saurabhdave. Your question looks like it's specific to a third-party framework, Alamofire, and not to any Apple-provided API. You may find more help in the support channel that framework.

—jasonag.

Alamofire.AFError.sessionTaskFailed
 
 
Q