命令行工具上传提示40000
发布于 6 年前 作者 xia81 9437 次浏览 来自 问答

当前已是最新版本(1.02.1808080)

上传提示如下:

{ StatusCodeError: 400 - "{\"code\":40000,\"error\":\"错误 SyntaxError: Unexpected token ] in JSON at position 264\"}"
    at new StatusCodeError (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request-promise-core/lib/errors.js:32:15)
    at Request.plumbing.callback (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request-promise-core/lib/plumbing.js:104:33)
    at Request.RP$callback [as _callback] (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at Request.self.callback (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request/request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request/request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/request/request.js:1091:12)
  name: 'StatusCodeError',
  statusCode: 400,
  message: '400 - "{\\"code\\":40000,\\"error\\":\\"错误 SyntaxError: Unexpected token ] in JSON at position 264\\"}"',
  error: '{"code":40000,"error":"错误 SyntaxError: Unexpected token ] in JSON at position 264"}',
options: 
   { url:

请问这是什么原因?这个提示对开发者来说看不到什么有价值的信息

2 回复

你好,错误码为400的话,建议检查语法

这个报错无法看出到底是哪里出了问题

回到顶部