I'm using Alamofire 3 and encountered this:
[Result]: FAILURE: Error Domain=NSURLErrorDomain Code=-1007 "too many HTTP redirects" UserInfo={NSUnderlyingError=0x15eb422d0 {Error Domain=kCFErrorDomainCFNetwork Code=-1007 "(null)"}, NSErrorFailingURLStringKey=URL omitted, NSErrorFailingURLKey= URL omitted, NSLocalizedDescription= too many HTTP redirects}
while calling this method:
upload(.POST, kTaskSubmitImageUrl, multipartFormData: { multipartFormData in
multipartFormData.appendBodyPart(data: result, name: "uploaded")
},
encodingCompletion:{ encodingResult in
switch encodingResult
{
case .Success(let upload, _, _):
upload.responseJSON{
responseData in
debugPrint(responseData)
}
case .Failure(let errorStatus) :
debugPrint(errorStatus)
}
}
)
anybody know whats going on about it? Should I look at my server?