spknetwork / video-encoder

5 stars 3 forks source link

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

Closed sag333ar closed 1 year ago

sag333ar commented 2 years ago

Encoding never happens on the server This is heavy weight Contabo server.

14|video   |       closeEmitted: false,
14|video   |       [Symbol(kOnFinished)]: []
14|video   |     },
14|video   |     _events: [Object: null prototype] {
14|video   |       response: [Function: handleResponse],
14|video   |       error: [Function: handleRequestError]
14|video   |     },
14|video   |     _eventsCount: 2,
14|video   |     _maxListeners: undefined,
14|video   |     _options: {
14|video   |       maxRedirects: 21,
14|video   |       maxBodyLength: 10485760,
14|video   |       protocol: 'https:',
14|video   |       path: '/v1/graphql',
14|video   |       method: 'POST',
14|video   |       headers: [Object],
14|video   |       agent: undefined,
14|video   |       agents: [Object],
14|video   |       auth: undefined,
14|video   |       hostname: 'encoder-gateway.infra.3speak.tv',
14|video   |       port: null,
14|video   |       nativeProtocols: [Object],
14|video   |       pathname: '/v1/graphql'
14|video   |     },
14|video   |     _ended: false,
14|video   |     _ending: true,
14|video   |     _redirectCount: 0,
14|video   |     _redirects: [],
14|video   |     _requestBodyLength: 648,
14|video   |     _requestBodyBuffers: [ [Object] ],
14|video   |     _onNativeResponse: [Function (anonymous)],
14|video   |     _currentRequest: ClientRequest {
14|video   |       _events: [Object: null prototype],
14|video   |       _eventsCount: 7,
14|video   |       _maxListeners: undefined,
14|video   |       outputData: [],
14|video   |       outputSize: 0,
14|video   |       writable: true,
14|video   |       destroyed: false,
14|video   |       _last: true,
14|video   |       chunkedEncoding: false,
14|video   |       shouldKeepAlive: false,
14|video   |       maxRequestsOnConnectionReached: false,
14|video   |       _defaultKeepAlive: true,
14|video   |       useChunkedEncodingByDefault: true,
14|video   |       sendDate: false,
14|video   |       _removedConnection: false,
14|video   |       _removedContLen: false,
14|video   |       _removedTE: false,
14|video   |       _contentLength: null,
14|video   |       _hasBody: true,
14|video   |       _trailer: '',
14|video   |       finished: false,
14|video   |       _headerSent: true,
14|video   |       _closed: false,
14|video   |       socket: [TLSSocket],
14|video   |       _header: 'POST /v1/graphql HTTP/1.1\r\n' +
14|video   |         'Accept: application/json, text/plain, */*\r\n' +
14|video   |         'Content-Type: application/json\r\n' +
14|video   |         'User-Agent: axios/0.24.0\r\n' +
14|video   |         'Content-Length: 648\r\n' +
14|video   |         'Host: encoder-gateway.infra.3speak.tv\r\n' +
14|video   |         'Connection: close\r\n' +
14|video   |         '\r\n',
14|video   |       _keepAliveTimeout: 0,
14|video   |       _onPendingData: [Function: nop],
14|video   |       agent: [Agent],
14|video   |       socketPath: undefined,
14|video   |       method: 'POST',
14|video   |       maxHeaderSize: undefined,
14|video   |       insecureHTTPParser: undefined,
14|video   |       path: '/v1/graphql',
14|video   |       _ended: false,
14|video   |       res: null,
14|video   |       aborted: false,
14|video   |       timeoutCb: null,
14|video   |       upgradeOrConnect: false,
14|video   |       parser: null,
14|video   |       maxHeadersCount: null,
14|video   |       reusedSocket: false,
14|video   |       host: 'encoder-gateway.infra.3speak.tv',
14|video   |       protocol: 'https:',
14|video   |       _redirectable: [Circular *1],
14|video   |       [Symbol(kCapture)]: false,
14|video   |       [Symbol(kNeedDrain)]: false,
14|video   |       [Symbol(corked)]: 0,
14|video   |       [Symbol(kOutHeaders)]: [Object: null prototype]
14|video   |     },
14|video   |     _currentUrl: 'https://encoder-gateway.infra.3speak.tv/v1/graphql',
14|video   |     [Symbol(kCapture)]: false
14|video   |   },
14|video   |   response: undefined,
14|video   |   isAxiosError: true,
14|video   |   toJSON: [Function: toJSON]
14|video   | }
14|video   | unhandledRejection Error: Client network socket disconnected before secure TLS connection was established
14|video   |     at connResetException (node:internal/errors:692:14)
14|video   |     at TLSSocket.onConnectEnd (node:_tls_wrap:1587:19)
14|video   |     at TLSSocket.emit (node:events:539:35)
14|video   |     at endReadableNT (node:internal/streams/readable:1345:12)
14|video   |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
14|video   |   code: 'ECONNRESET',
14|video   |   path: null,
14|video   |   host: 'encoder-gateway.infra.3speak.tv',
14|video   |   port: 443,
14|video   |   localAddress: undefined,
14|video   |   config: {
14|video   |     transitional: {
14|video   |       silentJSONParsing: true,
14|video   |       forcedJSONParsing: true,
14|video   |       clarifyTimeoutError: false
14|video   |     },
14|video   |     adapter: [Function: httpAdapter],
14|video   |     transformRequest: [ [Function: transformRequest] ],
14|video   |     transformResponse: [ [Function: transformResponse] ],
14|video   |     timeout: 0,
14|video   |     xsrfCookieName: 'XSRF-TOKEN',
14|video   |     xsrfHeaderName: 'X-XSRF-TOKEN',
14|video   |     maxContentLength: -1,
14|video   |     maxBodyLength: -1,
14|video   |     validateStatus: [Function: validateStatus],
14|video   |     headers: {
14|video   |       Accept: 'application/json, text/plain, */*',
14|video   |       'Content-Type': 'application/json',
14|video   |       'User-Agent': 'axios/0.24.0',
14|video   |       'Content-Length': 648
14|video   |     },
14|video   |     method: 'post',
14|video   |     url: 'https://encoder-gateway.infra.3speak.tv/v1/graphql',
14|video   |     data: '{"query":"\\n      query Query($node_id: String) {\\n        queueJob(node_id: $node_id) {\\n          reason\\n          job {\\n            id\\n            status\\n            created_at\\n            last_pinged\\n            start_date\\n            completed_at\\n            input {\\n              format\\n              uri\\n              size\\n            }\\n            result {\\n              format\\n              uri\\n              size\\n            }\\n            sync\\n            storageMetadata\\n            metadata\\n          }\\n        }\\n      }\\n      ","variables":{"node_id":"did:key:z6MkuiPA7ecm5qgxfREcfsSMNrhZgGajneGHkzPR1b4kzVrN"}}'
14|video   |   },
14|video   |   request: <ref *1> Writable {
14|video   |     _writableState: WritableState {
14|video   |       objectMode: false,
14|video   |       highWaterMark: 16384,
14|video   |       finalCalled: false,
14|video   |       needDrain: false,
14|video   |       ending: false,
14|video   |       ended: false,
14|video   |       finished: false,
14|video   |       destroyed: false,
14|video   |       decodeStrings: true,
14|video   |       defaultEncoding: 'utf8',
14|video   |       length: 0,
14|video   |       writing: false,
14|video   |       corked: 0,
14|video   |       sync: true,
14|video   |       bufferProcessing: false,
14|video   |       onwrite: [Function: bound onwrite],
14|video   |       writecb: null,
14|video   |       writelen: 0,
14|video   |       afterWriteTickInfo: null,
14|video   |       buffered: [],
14|video   |       bufferedIndex: 0,
14|video   |       allBuffers: true,
14|video   |       allNoop: true,
14|video   |       pendingcb: 0,
14|video   |       constructed: true,
14|video   |       prefinished: false,
14|video   |       errorEmitted: false,
14|video   |       emitClose: true,
14|video   |       autoDestroy: true,
14|video   |       errored: null,
14|video   |       closed: false,
14|video   |       closeEmitted: false,
14|video   |       [Symbol(kOnFinished)]: []
14|video   |     },
14|video   |     _events: [Object: null prototype] {
14|video   |       response: [Function: handleResponse],
14|video   |       error: [Function: handleRequestError]
14|video   |     },
14|video   |     _eventsCount: 2,
14|video   |     _maxListeners: undefined,
14|video   |     _options: {
14|video   |       maxRedirects: 21,
14|video   |       maxBodyLength: 10485760,
14|video   |       protocol: 'https:',
14|video   |       path: '/v1/graphql',
14|video   |       method: 'POST',
14|video   |       headers: [Object],
14|video   |       agent: undefined,
14|video   |       agents: [Object],
14|video   |       auth: undefined,
14|video   |       hostname: 'encoder-gateway.infra.3speak.tv',
14|video   |       port: null,
14|video   |       nativeProtocols: [Object],
14|video   |       pathname: '/v1/graphql'
14|video   |     },
14|video   |     _ended: false,
14|video   |     _ending: true,
14|video   |     _redirectCount: 0,
14|video   |     _redirects: [],
14|video   |     _requestBodyLength: 648,
14|video   |     _requestBodyBuffers: [ [Object] ],
14|video   |     _onNativeResponse: [Function (anonymous)],
14|video   |     _currentRequest: ClientRequest {
14|video   |       _events: [Object: null prototype],
14|video   |       _eventsCount: 7,
14|video   |       _maxListeners: undefined,
14|video   |       outputData: [],
14|video   |       outputSize: 0,
14|video   |       writable: true,
14|video   |       destroyed: false,
14|video   |       _last: true,
14|video   |       chunkedEncoding: false,
14|video   |       shouldKeepAlive: false,
14|video   |       maxRequestsOnConnectionReached: false,
14|video   |       _defaultKeepAlive: true,
14|video   |       useChunkedEncodingByDefault: true,
14|video   |       sendDate: false,
14|video   |       _removedConnection: false,
14|video   |       _removedContLen: false,
14|video   |       _removedTE: false,
14|video   |       _contentLength: null,
14|video   |       _hasBody: true,
14|video   |       _trailer: '',
14|video   |       finished: false,
14|video   |       _headerSent: true,
14|video   |       _closed: false,
14|video   |       socket: [TLSSocket],
14|video   |       _header: 'POST /v1/graphql HTTP/1.1\r\n' +
14|video   |         'Accept: application/json, text/plain, */*\r\n' +
14|video   |         'Content-Type: application/json\r\n' +
14|video   |         'User-Agent: axios/0.24.0\r\n' +
14|video   |         'Content-Length: 648\r\n' +
14|video   |         'Host: encoder-gateway.infra.3speak.tv\r\n' +
14|video   |         'Connection: close\r\n' +
14|video   |         '\r\n',
14|video   |       _keepAliveTimeout: 0,
14|video   |       _onPendingData: [Function: nop],
14|video   |       agent: [Agent],
14|video   |       socketPath: undefined,
14|video   |       method: 'POST',
14|video   |       maxHeaderSize: undefined,
14|video   |       insecureHTTPParser: undefined,
14|video   |       path: '/v1/graphql',
14|video   |       _ended: false,
14|video   |       res: null,
14|video   |       aborted: false,
14|video   |       timeoutCb: null,
14|video   |       upgradeOrConnect: false,
14|video   |       parser: null,
14|video   |       maxHeadersCount: null,
14|video   |       reusedSocket: false,
14|video   |       host: 'encoder-gateway.infra.3speak.tv',
14|video   |       protocol: 'https:',
14|video   |       _redirectable: [Circular *1],
14|video   |       [Symbol(kCapture)]: false,
14|video   |       [Symbol(kNeedDrain)]: false,
14|video   |       [Symbol(corked)]: 0,
14|video   |       [Symbol(kOutHeaders)]: [Object: null prototype]
14|video   |     },
14|video   |     _currentUrl: 'https://encoder-gateway.infra.3speak.tv/v1/graphql',
14|video   |     [Symbol(kCapture)]: false
14|video   |   },
14|video   |   response: undefined,
14|video   |   isAxiosError: true,
14|video   |   toJSON: [Function: toJSON]
14|video   | }
14|video   | unhandledRejection Error: Client network socket disconnected before secure TLS connection was established
14|video   |     at connResetException (node:internal/errors:692:14)
14|video   |     at TLSSocket.onConnectEnd (node:_tls_wrap:1587:19)
14|video   |     at TLSSocket.emit (node:events:539:35)
14|video   |     at endReadableNT (node:internal/streams/readable:1345:12)
14|video   |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
14|video   |   code: 'ECONNRESET',
14|video   |   path: null,
14|video   |   host: 'encoder-gateway.infra.3speak.tv',
14|video   |   port: 443,
14|video   |   localAddress: undefined,
14|video   |   config: {
14|video   |     transitional: {
14|video   |       silentJSONParsing: true,
14|video   |       forcedJSONParsing: true,
14|video   |       clarifyTimeoutError: false
14|video   |     },
14|video   |     adapter: [Function: httpAdapter],
14|video   |     transformRequest: [ [Function: transformRequest] ],
14|video   |     transformResponse: [ [Function: transformResponse] ],
14|video   |     timeout: 0,
14|video   |     xsrfCookieName: 'XSRF-TOKEN',
14|video   |     xsrfHeaderName: 'X-XSRF-TOKEN',
14|video   |     maxContentLength: -1,
14|video   |     maxBodyLength: -1,
14|video   |     validateStatus: [Function: validateStatus],
14|video   |     headers: {
14|video   |       Accept: 'application/json, text/plain, */*',
14|video   |       'Content-Type': 'application/json',
14|video   |       'User-Agent': 'axios/0.24.0',
14|video   |       'Content-Length': 648
14|video   |     },
14|video   |     method: 'post',
14|video   |     url: 'https://encoder-gateway.infra.3speak.tv/v1/graphql',
14|video   |     data: '{"query":"\\n      query Query($node_id: String) {\\n        queueJob(node_id: $node_id) {\\n          reason\\n          job {\\n            id\\n            status\\n            created_at\\n            last_pinged\\n            start_date\\n            completed_at\\n            input {\\n              format\\n              uri\\n              size\\n            }\\n            result {\\n              format\\n              uri\\n              size\\n            }\\n            sync\\n            storageMetadata\\n            metadata\\n          }\\n        }\\n      }\\n      ","variables":{"node_id":"did:key:z6MkuiPA7ecm5qgxfREcfsSMNrhZgGajneGHkzPR1b4kzVrN"}}'
14|video   |   },
14|video   |   request: <ref *1> Writable {
14|video   |     _writableState: WritableState {
14|video   |       objectMode: false,
14|video   |       highWaterMark: 16384,
14|video   |       finalCalled: false,
14|video   |       needDrain: false,
14|video   |       ending: false,
14|video   |       ended: false,
14|video   |       finished: false,
14|video   |       destroyed: false,
14|video   |       decodeStrings: true,
14|video   |       defaultEncoding: 'utf8',
14|video   |       length: 0,
14|video   |       writing: false,
14|video   |       corked: 0,
14|video   |       sync: true,
14|video   |       bufferProcessing: false,
14|video   |       onwrite: [Function: bound onwrite],
14|video   |       writecb: null,
14|video   |       writelen: 0,
14|video   |       afterWriteTickInfo: null,
14|video   |       buffered: [],
14|video   |       bufferedIndex: 0,
14|video   |       allBuffers: true,
14|video   |       allNoop: true,
14|video   |       pendingcb: 0,
14|video   |       constructed: true,
14|video   |       prefinished: false,
14|video   |       errorEmitted: false,
14|video   |       emitClose: true,
14|video   |       autoDestroy: true,
14|video   |       errored: null,
14|video   |       closed: false,
14|video   |       closeEmitted: false,
14|video   |       [Symbol(kOnFinished)]: []
14|video   |     },
14|video   |     _events: [Object: null prototype] {
14|video   |       response: [Function: handleResponse],
14|video   |       error: [Function: handleRequestError]
14|video   |     },
14|video   |     _eventsCount: 2,
14|video   |     _maxListeners: undefined,
14|video   |     _options: {
14|video   |       maxRedirects: 21,
14|video   |       maxBodyLength: 10485760,
14|video   |       protocol: 'https:',
14|video   |       path: '/v1/graphql',
14|video   |       method: 'POST',
14|video   |       headers: [Object],
14|video   |       agent: undefined,
14|video   |       agents: [Object],
14|video   |       auth: undefined,
14|video   |       hostname: 'encoder-gateway.infra.3speak.tv',
14|video   |       port: null,
14|video   |       nativeProtocols: [Object],
14|video   |       pathname: '/v1/graphql'
14|video   |     },
14|video   |     _ended: false,
14|video   |     _ending: true,
14|video   |     _redirectCount: 0,
14|video   |     _redirects: [],
14|video   |     _requestBodyLength: 648,
14|video   |     _requestBodyBuffers: [ [Object] ],
14|video   |     _onNativeResponse: [Function (anonymous)],
14|video   |     _currentRequest: ClientRequest {
14|video   |       _events: [Object: null prototype],
14|video   |       _eventsCount: 7,
14|video   |       _maxListeners: undefined,
14|video   |       outputData: [],
14|video   |       outputSize: 0,
14|video   |       writable: true,
14|video   |       destroyed: false,
14|video   |       _last: true,
14|video   |       chunkedEncoding: false,
14|video   |       shouldKeepAlive: false,
14|video   |       maxRequestsOnConnectionReached: false,
14|video   |       _defaultKeepAlive: true,
14|video   |       useChunkedEncodingByDefault: true,
14|video   |       sendDate: false,
14|video   |       _removedConnection: false,
14|video   |       _removedContLen: false,
14|video   |       _removedTE: false,
14|video   |       _contentLength: null,
14|video   |       _hasBody: true,
14|video   |       _trailer: '',
14|video   |       finished: false,
14|video   |       _headerSent: true,
14|video   |       _closed: false,
14|video   |       socket: [TLSSocket],
14|video   |       _header: 'POST /v1/graphql HTTP/1.1\r\n' +
14|video   |         'Accept: application/json, text/plain, */*\r\n' +
14|video   |         'Content-Type: application/json\r\n' +
14|video   |         'User-Agent: axios/0.24.0\r\n' +
14|video   |         'Content-Length: 648\r\n' +
14|video   |         'Host: encoder-gateway.infra.3speak.tv\r\n' +
14|video   |         'Connection: close\r\n' +
14|video   |         '\r\n',
14|video   |       _keepAliveTimeout: 0,
14|video   |       _onPendingData: [Function: nop],
14|video   |       agent: [Agent],
14|video   |       socketPath: undefined,
14|video   |       method: 'POST',
14|video   |       maxHeaderSize: undefined,
14|video   |       insecureHTTPParser: undefined,
14|video   |       path: '/v1/graphql',
14|video   |       _ended: false,
14|video   |       res: null,
14|video   |       aborted: false,
14|video   |       timeoutCb: null,
14|video   |       upgradeOrConnect: false,
14|video   |       parser: null,
14|video   |       maxHeadersCount: null,
14|video   |       reusedSocket: false,
14|video   |       host: 'encoder-gateway.infra.3speak.tv',
14|video   |       protocol: 'https:',
14|video   |       _redirectable: [Circular *1],
14|video   |       [Symbol(kCapture)]: false,
14|video   |       [Symbol(kNeedDrain)]: false,
14|video   |       [Symbol(corked)]: 0,
14|video   |       [Symbol(kOutHeaders)]: [Object: null prototype]
14|video   |     },
14|video   |     _currentUrl: 'https://encoder-gateway.infra.3speak.tv/v1/graphql',
14|video   |     [Symbol(kCapture)]: false
14|video   |   },
14|video   |   response: undefined,
14|video   |   isAxiosError: true,
14|video   |   toJSON: [Function: toJSON]
14|video   | }
14|video   | https://encoder-gateway.infra.3speak.tv
14|video   | https://encoder-gateway.infra.3speak.tv
14|video   | jobInfo {"data":{"queueJob":{"reason":"RANK_REQUIREMENT","job":null}}} { node_id: 'did:key:z6MkuiPA7ecm5qgxfREcfsSMNrhZgGajneGHkzPR1b4kzVrN' }
14|video   | https://encoder-gateway.infra.3speak.tv
vaultec81 commented 1 year ago

Closing in favor of #16