ios - Code=-1011 "Request failed: internal server error (500) -


i meet problem 2 days,android app works background interface,but receive 500 error.my code this.

afhttpsessionmanager *manager = [afhttpsessionmanager manager]; manager.requestserializer = [afjsonrequestserializer serializer]; manager.responseserializer = [afhttpresponseserializer serializer]; manager.responseserializer.acceptablecontenttypes = [nsset setwithobject:@"text/html"]; [manager post:urlstring parameters:self.param.mj_keyvalues  success:^(nsurlsessiondatatask *task, id responseobject) {         ....     } failure:^(nsurlsessiondatatask *task, nserror *error) {         .... }]; 

and then,the program goes failure block,and nserror log this.

error domain=com.alamofire.error.serialization.response code=-1011 "request failed: internal server error (500)" userinfo={com.alamofire.serialization.response.error.response=<nshttpurlresponse: 0x7fc26b49a080> { url: https://training.duapp.com/record_data } { status code: 500, headers { server = openresty; content-type = text/html;charset=utf-8; vary = accept-encoding; content-language = en; date = fri, 02 sep 2016 03:55:00 gmt; content-encoding = gzip; content-length = 646; connection = keep-alive; } }, nserrorfailingurlkey=https://training.duapp.com/record_data, com.alamofire.serialization.response.error.data= 

then tried convent param nsdictionary nsdata or nsstring,and change requestserializer it,but failed error 500.the format of param has no error,which conformed background workmate.can you?what should do?

code=-1011 "request failed: internal server error (500)" server side issue. please check server team check because server returning error request.


Comments