[图片]这是数据格式及debug结果 [图片] [图片]为什么中英文混搭会出错?编码问题吗
敏感词检测接口"errcode":47001,",数据已经json序列化var getMsg = function (_token,content) { return new Promise(function (resolve, reject) { var postData = { content: content }; postData = JSON.stringify(postData) console.log('after') console.log(postData) var options = { hostname: 'api.weixin.qq.com', path: '/wxa/msg_sec_check?access_token=' + _token, port:443, method: 'POST', headers:{ 'Referer': 'https://k3fcz9gw.qcloud.la/weapp/minganci/', 'Content-Type': 'application/json', 'Content-Length': postData.length, } }; var msg = ''; const reqB = https.request(options, (res) => { console.log('STATUS: ' + res.statusCode); console.log('HEADERS: ' + JSON.stringify(res.headers)); res.on('data', function (data) { console.log('data') msg += data; }); res.on('end', function () { console.log('end') resolve(msg) }); }); reqB.write(postData); reqB.on('error', function (e){ console.log('error') msg = e; resolve(msg) }); reqB.end(); }) }
2018-06-12用智能上传遇到了这个问题,改用模块上传便没有了错误
上传测试代码报错{"errcode":-80076}微信开发者工具中点击“上传测试代码”按钮,选择智能上传,并部署依赖,一直处于环境部署中,过段时间后报错{"errcode":-80076},错误提示如下,请大神指点[图片]
2018-06-03