开发者工具通过命令行方式上传代码提示网络错误
{ StatusCodeError: 400 - "{\"code\":40000,\"error\":\"错误 网络错误,状态码:503\"}" at new StatusCodeError (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request/request.js:186:22) at emitTwo (events.js:125:13) at Request.emit (events.js:213:7) at Request.<anonymous> (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request/request.js:1163:10) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at IncomingMessage.<anonymous> (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/request/request.js:1085:12) name: 'StatusCodeError', statusCode: 400, message: '400 - "{\\"code\\":40000,\\"error\\":\\"错误 网络错误,状态码:503\\"}"', error: '{"code":40000,"error":"错误 网络错误,状态码:503"}', options: { url: 'xxxx', resolveWithFullResponse: true, callback: [Function: RP$callback], transform: undefined, simple: true,transform2xxOnly: false },
ps:如果并行上传是否会导致上述错误?
4 回复
@孙鑫,官方有文档:https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/cli.html
@Link,服务器挺正常的,我们是在提供线上服务的机房里面做这个,机房网络抖动会有告警。请问503具体是什么报错?如果是超时也请给出确认,谢谢。