Android: DELETE does not support writing
问题手机
1. 索尼 Z3 , Android 4.4.4
- 魅族 m1,FlymeOS 4.2.1.2Y
在小程序中发起一个请求类型为DELETE的请求,所有的DELETE请求都返回同样的结果
wx.request({ method: 'DELETE' , data: { openid: openid, deviceId: deviceId }, url: config.api.host + config.api.path.device + "/" + deviceId, success: (result) => { console.log(result); if (callback) { callback(result); } }, fail: (e) => { console.log( "deleteDeviceApi" ,e); heytzApi.errorTip(); } }); |
错误回调返回
{ "errMsg" : "request:fail DELETE does not support writing" } |
仅上面版本的手机发现了这样的问题,其他的Android手机正常。
3 回复
没完整支持就不要在文档中写啊!
https://image.wxopen.club/content_d906f5b6-3746-11ea-b918-a0999b08aadb.png
需大写有效值:OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
支持DELETE是什么情况?!