r***@foxmail.com
r***@foxmail.com
  • 发布:2019-08-13 13:54
  • 更新:2020-03-16 21:37
  • 阅读:2535

升级到最新版本后,使用uni.request,服务器返回"statusCode": 400时,返回的数据不包含data,之前是有的

分类:uni-app

{

"statusCode": 400,

"header": {

"Content-Type": "application/json; charset=utf-8",

"Date": "Tue, 13 Aug 2019 02:39:05 GMT",

"X-Android-Received-Millis": "1565663993572",

"Server": "Kestrel",

"X-Android-Response-Source": "NETWORK 400",

"X-Android-Selected-Protocol": "http/1.1",

"X-Android-Sent-Millis": "1565663990427",

"_": "HTTP/1.1 400 Bad Request",

"Transfer-Encoding": "chunked"

},

"errMsg": "request:ok"

}

2019-08-13 13:54 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com

你好 这个问题解决了么?我也遇到了这个问题
{
"data": "",
"statusCode": 400,
"header": {
"X-Android-Received-Millis": "1573524547180",
"X-Android-Response-Source": "NETWORK 400",
"Server": "nginx/1.14.0",
"Connection": "keep-alive",
"X-Android-Selected-Protocol": "http/1.1",
"Transfer-Encoding": "chunked",
"_": "HTTP/1.1 400 ",
"Date": "Tue, 12 Nov 2019 02:09:26 GMT",
"X-Android-Sent-Millis": "1573524547027"
},
"errMsg": "request:ok"
}
平台版本是最新的2.3.7.20191024

8***@qq.com

8***@qq.com

解决了 参数用data传。。

  • 7***@qq.com

    我是用data传的但是还是这样的

    2020-02-24 16:52

z***@163.com

z***@163.com

后台报的异常是401,但是前台因为跨域拿到的是302,请问这个怎么能拿到401呢?或者退而求其次,拿到302也行

该问题目前已经被锁定, 无法添加新回复