objective-c - AFN post请求code=-1011“failed: internal server error (500)" ”
淡淡烟草味
淡淡烟草味 2017-05-02 09:27:38
0
2
1174

1,post请求不到数据
2

3报错信息
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,感谢任何帮助

淡淡烟草味
淡淡烟草味

Antworte allen(2)
过去多啦不再A梦

请求地址后面 ?什么鬼

伊谢尔伦

确认你访问地址没问题的话,让后端查查问题所在。500是服务区内部错误。
不过像一楼说的,你那个?是什么鬼。用af做post请求的话不需要加?

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage