Val-Zhang / terminal-lexicon

dictionary in terminal
https://www.npmjs.com/package/terminal-lexicon
10 stars 0 forks source link

Error: Client network socket disconnected before secure TLS connection was established #12

Open AspieterPan opened 1 year ago

AspieterPan commented 1 year ago

npm下载后使用时报错 环境:Ubuntu 22.04.2 LTS 网络:使用了VPN,手动设置了socket端口 报错信息:

dict node Error: Client network socket disconnected before secure TLS connection was established at connResetException (internal/errors.js:609:14) at TLSSocket.onConnectEnd (_tls_wrap.js:1557:19) at Object.onceWrapper (events.js:420:28) at TLSSocket.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { code: 'ECONNRESET', path: null, host: '127.0.0.1', port: '10900', localAddress: undefined, config: { adapter: [Function: httpAdapter], transformRequest: { '0': [Function: transformRequest] }, transformResponse: { '0': [Function: transformResponse] }, timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, /', 'User-Agent': 'axios/0.18.1', host: 'api.shanbay.com' }, method: 'get', url: 'https://api.shanbay.com/bdc/search/?word=node', data: undefined }, request: Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 0, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: [Object] }, writable: true, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError] }, _eventsCount: 2, _maxListeners: undefined, _options: { protocol: 'https:', maxRedirects: 21, maxBodyLength: 10485760, path: 'https://api.shanbay.com/bdc/search/?word=node', method: 'get', headers: [Object], agent: undefined, auth: undefined, hostname: '127.0.0.1', port: '10900', nativeProtocols: [Object], pathname: 'https://api.shanbay.com/bdc/search/', search: '?word=node' }, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _onNativeResponse: [Function], _currentRequest: ClientRequest { _events: [Object: null prototype], _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], connection: [TLSSocket], _header: 'GET https://api.shanbay.com/bdc/search/?word=node HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /\r\n' + 'User-Agent: axios/0.18.1\r\n' + 'host: api.shanbay.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', insecureHTTPParser: undefined, path: 'https://api.shanbay.com/bdc/search/?word=node', _ended: false, res: null, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: '127.0.0.1', protocol: 'https:', _redirectable: [Circular],

[Symbol(kOutHeaders)]: [Object: null prototype] }, _currentUrl: 'https://127.0.0.1:10900/https://api.shanbay.com/bdc/search/?word=node',

}, response: undefined }

MiaomiaoFanny commented 1 year ago

收到,谢谢。