微信开发者工具上传代码时,提示 Error: read ECONNRESET?
发布于 7 年前 作者 kqin 4427 次浏览 来自 问答

在通过微信开发者工具的上传功能上传失败,以下是通过命令行上传时得到的返回,也不知道为什么是不是公司网段禁用了什么,但是微信的一些网站也是能能进的,麻烦有热心的小伙伴可以帮忙解答一下吗

–upload-info-output C:/Users/SunRen/git/miniProgram/info.json

Initializing…

idePortFile: C:\Users\SunRen\AppData\Local\微信开发者工具\User Data\Default\.ide

IDE server has started, listening on http://127.0.0.1:24469

initialization finished

uploading project…

{ i [StatusCodeError]: 400 - "{\“code\”:40000,\“error\”:\"错误 Error: read ECONN

RESET\"}"

    at new i (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\package.nw\

js\common\cli\index.js:157:46301)

    at H.callback (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\packag

e.nw\js\common\cli\index.js:157:45150)

    at H.e.callback.a.callback [as _callback] (C:\Users\SunRen\AppData\Roaming\T

encent\微信开发者工具\package.nw\js\common\cli\index.js:157:44204)

    at H.a._callback.a.callback.a.callback (C:\Users\SunRen\AppData\Roaming\Tenc

ent\微信开发者工具\package.nw\js\common\cli\index.js:187:5473)

    at H.emit (events.js:193:13)

    at H.<anonymous> (C:\Users\SunRen\AppData\Roaming\Tencent\微信开发者工具\pac

kage.nw\js\common\cli\index.js:187:18286)

    at H.emit (events.js:193:13)

    at IncomingMessage.<anonymous> (C:\Users\SunRen\AppData\Roaming\Tencent\微信

开发者工具\package.nw\js\common\cli\index.js:187:17128)

    at Object.onceWrapper (events.js:281:20)

    at IncomingMessage.emit (events.js:198:15)

  name: ‘StatusCodeError’,

  statusCode: 400,

  message:

   ‘400 - “{\\“code\\”:40000,\\“error\\”:\\“错误 Error: read ECONNRESET\\”}”’,

  error: ‘{“code”:40000,“error”:“错误 Error: read ECONNRESET”}’,

  options:

   { url:

      'http://127.0.0.1:24469/upload?cli=1&projectpath=C%253A%252FUsers%252FSunR

en%252Fgit%252FminiProgram%252FCR1902543_Birthday_from_master&version=1.2.1&desc

=%27correct&infooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Fi

nfo.json’,

     resolveWithFullResponse: true,

     callback: [Function],

     transform: undefined,

     simple: true,

     transform2xxOnly: false },

  response:

   IncomingMessage {

     _readableState:

      ReadableState {

        objectMode: false,

        highWaterMark: 16384,

        buffer: BufferList { head: null, tail: null, length: 0 },

        length: 0,

        pipes: null,

        pipesCount: 0,

        flowing: true,

        ended: true,

        endEmitted: true,

        reading: false,

        sync: true,

        needReadable: false,

        emittedReadable: false,

        readableListening: false,

        resumeScheduled: false,

        paused: false,

        emitClose: true,

        autoDestroy: false,

        destroyed: false,

        defaultEncoding: ‘utf8’,

        awaitDrain: 0,

        readingMore: true,

        decoder: null,

        encoding: null },

     readable: false,

     _events:

      [Object: null prototype] {

        end: [Array],

        close: [Array],

        data: [Function],

        error: [Function] },

     _eventsCount: 4,

     _maxListeners: undefined,

     socket:

      Socket {

        connecting: false,

        _hadError: false,

        _parent: null,

        _host: null,

        _readableState: [ReadableState],

        readable: true,

        _events: [Object],

        _eventsCount: 7,

        _maxListeners: undefined,

        _writableState: [WritableState],

        writable: false,

        allowHalfOpen: false,

        _sockname: null,

        _pendingData: null,

        _pendingEncoding: ‘’,

        server: null,

        _server: null,

        parser: null,

        _httpMessage: [ClientRequest],

        [Symbol(asyncId)]: 36,

        [Symbol(kHandle)]: [TCP],

        [Symbol(lastWriteQueueSize)]: 0,

        [Symbol(timeout)]: null,

        [Symbol(kBytesRead)]: 0,

        [Symbol(kBytesWritten)]: 0 },

     connection:

      Socket {

        connecting: false,

        _hadError: false,

        _parent: null,

        _host: null,

        _readableState: [ReadableState],

        readable: true,

        _events: [Object],

        _eventsCount: 7,

        _maxListeners: undefined,

        _writableState: [WritableState],

        writable: false,

        allowHalfOpen: false,

        _sockname: null,

        _pendingData: null,

        _pendingEncoding: ‘’,

        server: null,

        _server: null,

        parser: null,

        _httpMessage: [ClientRequest],

        [Symbol(asyncId)]: 36,

        [Symbol(kHandle)]: [TCP],

        [Symbol(lastWriteQueueSize)]: 0,

        [Symbol(timeout)]: null,

        [Symbol(kBytesRead)]: 0,

        [Symbol(kBytesWritten)]: 0 },

     httpVersionMajor: 1,

     httpVersionMinor: 1,

     httpVersion: ‘1.1’,

     complete: true,

     headers:

      { ‘content-type’: ‘application/json;  charset=utf-8’,

        date: ‘Mon, 03 Feb 2020 03:41:12 GMT’,

        connection: ‘close’,

        ‘transfer-encoding’: ‘chunked’ },

     rawHeaders:

      [ ‘Content-Type’,

        ‘application/json;  charset=utf-8’,

        ‘Date’,

        ‘Mon, 03 Feb 2020 03:41:12 GMT’,

        ‘Connection’,

        ‘close’,

        ‘Transfer-Encoding’,

        ‘chunked’ ],

     trailers: {},

     rawTrailers: [],

     aborted: false,

     upgrade: false,

     url: ‘’,

     method: null,

     statusCode: 400,

     statusMessage: ‘Bad Request’,

     client:

      Socket {

        connecting: false,

        _hadError: false,

        _parent: null,

        _host: null,

        _readableState: [ReadableState],

        readable: true,

        _events: [Object],

        _eventsCount: 7,

        _maxListeners: undefined,

        _writableState: [WritableState],

        writable: false,

        allowHalfOpen: false,

        _sockname: null,

        _pendingData: null,

        _pendingEncoding: ‘’,

        server: null,

        _server: null,

        parser: null,

        _httpMessage: [ClientRequest],

        [Symbol(asyncId)]: 36,

        [Symbol(kHandle)]: [TCP],

        [Symbol(lastWriteQueueSize)]: 0,

        [Symbol(timeout)]: null,

        [Symbol(kBytesRead)]: 0,

        [Symbol(kBytesWritten)]: 0 },

     _consuming: false,

     _dumped: false,

     req:

      ClientRequest {

        _events: [Object],

        _eventsCount: 5,

        _maxListeners: undefined,

        outputData: [],

        outputSize: 0,

        writable: true,

        _last: true,

        chunkedEncoding: false,

        shouldKeepAlive: false,

        useChunkedEncodingByDefault: false,

        sendDate: false,

        _removedConnection: false,

        _removedContLen: false,

        _removedTE: false,

        _contentLength: 0,

        _hasBody: true,

        _trailer: ‘’,

        finished: true,

        _headerSent: true,

        socket: [Socket],

        connection: [Socket],

        _header:

         'GET /upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252F

miniProgram%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&inf

ooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json HTTP/1

.1\r\nhost: 127.0.0.1:24469\r\nConnection: close\r\n\r\n’,

        _onPendingData: [Function: noopPendingOutput],

        agent: [Agent],

        socketPath: undefined,

        timeout: undefined,

        method: ‘GET’,

        path:

         '/upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252Fmini

Program%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&infoout

put=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json’,

        _ended: true,

        res: [Circular],

        aborted: false,

        timeoutCb: null,

        upgradeOrConnect: false,

        parser: null,

        maxHeadersCount: null,

        [Symbol(isCorked)]: false,

        [Symbol(outHeadersKey)]: [Object] },

     request:

      H {

        _events: [Object],

        _eventsCount: 5,

        _maxListeners: undefined,

        resolveWithFullResponse: true,

        readable: true,

        writable: true,

        _qs: [r],

        _auth: [c],

        _oauth: [u],

        _multipart: [s],

        _redirect: [r],

        _tunnel: [s],

        _rp_resolve: [Function],

        _rp_reject: [Function],

        _rp_promise: [Promise],

        _rp_callbackOrig: undefined,

        callback: [Function],

        _rp_options: [Object],

        headers: {},

        setHeader: [Function],

        hasHeader: [Function],

        getHeader: [Function],

        removeHeader: [Function],

        method: ‘GET’,

        localAddress: undefined,

        pool: {},

        dests: [],

        __isRequestRequest: true,

        _callback: [Function],

        uri: [Url],

        proxy: null,

        tunnel: false,

        setHost: true,

        originalCookieHeader: undefined,

        _disableCookies: true,

        _jar: undefined,

        port: ‘24469’,

        host: ‘127.0.0.1’,

        path:

         '/upload?cli=1&projectpath=C%253A%252FUsers%252FSunRen%252Fgit%252Fmini

Program%252FCR1902543_Birthday_from_master&version=1.2.1&desc=%27correct&infoout

put=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%252Finfo.json’,

        httpModule: [Object],

        agentClass: [Function],

        agent: [Agent],

        _started: true,

        href:

         'http://127.0.0.1:24469/upload?cli=1&projectpath=C%253A%252FUsers%252FS

unRen%252Fgit%252FminiProgram%252FCR1902543_Birthday_from_master&version=1.2.1&d

esc=%27correct&infooutput=C%253A%252FUsers%252FSunRen%252Fgit%252FminiProgram%25

2Finfo.json’,

        req: [ClientRequest],

        ntick: true,

        response: [Circular],

        originalHost: ‘127.0.0.1:24469’,

        originalHostHeaderName: ‘host’,

        responseContent: [Circular],

        _destdata: true,

        _ended: true,

        _callbackCalled: true },

     toJSON: [Function: L],

     caseless: t { dict: [Object] },

     body: ‘{“code”:40000,“error”:“错误 Error: read ECONNRESET”}’ } }

C:\Program Files (x86)\Tencent\微信web开发者工具>

2 回复

你好,可以检查一下网络是否正常

可以提供微信开发者工具用的是哪个端口号吗,或者目标IP?

网络看不太出来,因为可以扫码登录进微信开发者工具,但是在导入新工程或者新建工程的时候会出现同样的问题

回到顶部