xXuteng 2017-06-23 02:02 采纳率: 100%
浏览 4243
已采纳

使用AFN发送post请求,报了一个500的错,但是安卓和postman能请求的到数据

我使用AFN发送一个post请求,报了以下的错误,但是安卓和postman能请求的到数据,跪求各位大神帮我看一下问题出在哪里

Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: internal server error (500)" UserInfo={com.alamofire.serialization.response.error.response= { URL: http://123.207.232.93/api/Cart/cart_list } { status code: 500, headers {
Server = Apache;
Content-Type = text/html; charset=UTF-8;
Pragma = no-cache;
Cache-Control = no-store, no-cache, must-revalidate, post-check=0, pre-check=0;
Date = Thu, 22 Jun 2017 09:33:30 GMT;
Content-Length = 0;
Expires = Thu, 19 Nov 1981 08:52:00 GMT;
Connection = close;
}
}, NSErrorFailingURLKey=http://123.207.232.93/api/Cart/cart_list, com.alamofire.serialization.response.error.data=<>, NSLocalizedDescription=Request failed: internal server error (500)}

  • 写回答

2条回答

  • xXuteng 2018-11-22 00:55
    关注

    后台问题,只要后台改一下参数就可以了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog