search

Home  >  Q&A  >  body text

objective-c - AFN post请求code=-1011“failed: internal server error (500)" ”

1, post request can’t find data
2

3 Error message
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: internal server error (500)" UserInfo={com.alamofire.serialization.response.error.response =<NSHTTPURLResponse: 0x7fce67aba540> { URL: http://192.168.1.10:8080/web/Login? } { status code: 500, headers {

Connection = close;
"Content-Language" = en;
"Content-Length" = 4135;
"Content-Type" = "text/html;charset=utf-8";
Date = "Sat, 16 Jul 2016 06:44:55 GMT";
Server = "Apache-Coyote/1.1";

} }, NSErrorFailingURLKey=http://192.168.1.10:8080/web/Login?,, com.alamofire.serialization.response.error.data=<3c68746d 6c3e3c68 6d6c3e>, NSLocalizedDescription=Request failed: internal server error (500)}
5, Thanks for any Help

淡淡烟草味淡淡烟草味2770 days ago1159

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:29:38

    What the hell is behind the request address?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:29:38

    If you confirm that there is no problem with your access address, let the backend check the problem. 500 is an internal error in the service area.
    But like what the first floor said, what the hell is that? If you use af to make a post request, do you need to add it?

    reply
    0
  • Cancelreply