spknetwork / video-encoder

5 stars 3 forks source link

500 internal server error #7

Closed sag333ar closed 1 year ago

sag333ar commented 2 years ago
2|video    |       redirects: [],
2|video    |       [Symbol(kCapture)]: false,
2|video    |       [Symbol(kHeaders)]: [Object],
2|video    |       [Symbol(kHeadersCount)]: 14,
2|video    |       [Symbol(kTrailers)]: null,
2|video    |       [Symbol(kTrailersCount)]: 0,
2|video    |       [Symbol(RequestTimeout)]: undefined
2|video    |     },
2|video    |     aborted: false,
2|video    |     timeoutCb: null,
2|video    |     upgradeOrConnect: false,
2|video    |     parser: null,
2|video    |     maxHeadersCount: null,
2|video    |     reusedSocket: false,
2|video    |     host: 'encoder-gateway.infra.3speak.tv',
2|video    |     protocol: 'https:',
2|video    |     _redirectable: Writable {
2|video    |       _writableState: [WritableState],
2|video    |       _events: [Object: null prototype],
2|video    |       _eventsCount: 2,
2|video    |       _maxListeners: undefined,
2|video    |       _options: [Object],
2|video    |       _ended: true,
2|video    |       _ending: true,
2|video    |       _redirectCount: 0,
2|video    |       _redirects: [],
2|video    |       _requestBodyLength: 481,
2|video    |       _requestBodyBuffers: [],
2|video    |       _onNativeResponse: [Function (anonymous)],
2|video    |       _currentRequest: [Circular *1],
2|video    |       _currentUrl: 'https://encoder-gateway.infra.3speak.tv/api/v0/gateway/finishJob',
2|video    |       [Symbol(kCapture)]: false
2|video    |     },
2|video    |     [Symbol(kCapture)]: false,
2|video    |     [Symbol(kNeedDrain)]: false,
2|video    |     [Symbol(corked)]: 0,
2|video    |     [Symbol(kOutHeaders)]: [Object: null prototype] {
2|video    |       accept: [Array],
2|video    |       'content-type': [Array],
2|video    |       'user-agent': [Array],
2|video    |       'content-length': [Array],
2|video    |       host: [Array]
2|video    |     }
2|video    |   },
2|video    |   response: {
2|video    |     status: 500,
2|video    |     statusText: 'Internal Server Error',
2|video    |     headers: {
2|video    |       server: 'nginx/1.18.0 (Ubuntu)',
2|video    |       date: 'Mon, 06 Jun 2022 20:28:06 GMT',
2|video    |       'content-type': 'application/json; charset=utf-8',
2|video    |       'content-length': '52',
2|video    |       connection: 'close',
2|video    |       'x-powered-by': 'Express',
2|video    |       etag: 'W/"34-rlKccw1E+/fV8niQk4oFitDfPro"'
2|video    |     },
2|video    |     config: {
2|video    |       transitional: [Object],
2|video    |       adapter: [Function: httpAdapter],
2|video    |       transformRequest: [Array],
2|video    |       transformResponse: [Array],
2|video    |       timeout: 0,
2|video    |       xsrfCookieName: 'XSRF-TOKEN',
2|video    |       xsrfHeaderName: 'X-XSRF-TOKEN',
2|video    |       maxContentLength: -1,
2|video    |       maxBodyLength: -1,
2|video    |       validateStatus: [Function: validateStatus],
2|video    |       headers: [Object],
2|video    |       method: 'post',
2|video    |       url: 'https://encoder-gateway.infra.3speak.tv/api/v0/gateway/finishJob',
2|video    |       data: '{"jws":{"payload":"eyJqb2JfaWQiOiJkMzI3NzgyYi0wYzhhLTRiNjAtOWRiOS01MmRiYjYzZmQ3OTAiLCJvdXRwdXQiOnsiY2lkIjoiUW1ldFNDMVdXdW9DQ2diMXAySEVRemlaNzl2RUNwWlNaREI3eG9rZHZ4QzN2RCJ9fQ","signatures":[{"protected":"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa3dBOFVvSEFTdkhUM05MMUR3VVdVMVlMY1hjb29MU2NrbjZ0aVJVRlh5RVE1I3o2TWt3QThVb0hBU3ZIVDNOTDFEd1VXVTFZTGNYY29vTFNja242dGlSVUZYeUVRNSJ9","signature":"HgmZ7qppeV5W3ku4Fc-rZ2hFO9t8LG9Ke1HbLEYoAXGU8dax0-vmArews05qnMH3cZR7zTfl0I4MO9OWjjG5Cw"}]}}'
2|video    |     },
2|video    |     request: <ref *1> ClientRequest {
2|video    |       _events: [Object: null prototype],
2|video    |       _eventsCount: 7,
2|video    |       _maxListeners: undefined,
2|video    |       outputData: [],
2|video    |       outputSize: 0,
2|video    |       writable: true,
2|video    |       destroyed: false,
2|video    |       _last: true,
2|video    |       chunkedEncoding: false,
2|video    |       shouldKeepAlive: false,
2|video    |       maxRequestsOnConnectionReached: false,
2|video    |       _defaultKeepAlive: true,
2|video    |       useChunkedEncodingByDefault: true,
2|video    |       sendDate: false,
2|video    |       _removedConnection: false,
2|video    |       _removedContLen: false,
2|video    |       _removedTE: false,
2|video    |       _contentLength: null,
2|video    |       _hasBody: true,
2|video    |       _trailer: '',
2|video    |       finished: true,
2|video    |       _headerSent: true,
2|video    |       _closed: false,
2|video    |       socket: [TLSSocket],
2|video    |       _header: 'POST /api/v0/gateway/finishJob HTTP/1.1\r\n' +
2|video    |         'Accept: application/json, text/plain, */*\r\n' +
2|video    |         'Content-Type: application/json\r\n' +
2|video    |         'User-Agent: axios/0.24.0\r\n' +
2|video    |         'Content-Length: 481\r\n' +
2|video    |         'Host: encoder-gateway.infra.3speak.tv\r\n' +
2|video    |         'Connection: close\r\n' +
2|video    |         '\r\n',
2|video    |       _keepAliveTimeout: 0,
2|video    |       _onPendingData: [Function: nop],
2|video    |       agent: [Agent],
2|video    |       socketPath: undefined,
2|video    |       method: 'POST',
2|video    |       maxHeaderSize: undefined,
2|video    |       insecureHTTPParser: undefined,
2|video    |       path: '/api/v0/gateway/finishJob',
2|video    |       _ended: true,
2|video    |       res: [IncomingMessage],
2|video    |       aborted: false,
2|video    |       timeoutCb: null,
2|video    |       upgradeOrConnect: false,
2|video    |       parser: null,
2|video    |       maxHeadersCount: null,
2|video    |       reusedSocket: false,
2|video    |       host: 'encoder-gateway.infra.3speak.tv',
2|video    |       protocol: 'https:',
2|video    |       _redirectable: [Writable],
2|video    |       [Symbol(kCapture)]: false,
2|video    |       [Symbol(kNeedDrain)]: false,
2|video    |       [Symbol(corked)]: 0,
2|video    |       [Symbol(kOutHeaders)]: [Object: null prototype]
2|video    |     },
2|video    |     data: { statusCode: 500, message: 'Internal server error' }
2|video    |   },
2|video    |   isAxiosError: true,
2|video    |   toJSON: [Function: toJSON]
2|video    | }
2|video    | Error: connect ETIMEDOUT 167.160.89.98:443
2|video    |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) {
2|video    |   errno: -60,
2|video    |   code: 'ETIMEDOUT',
2|video    |   syscall: 'connect',
2|video    |   address: '167.160.89.98',
2|video    |   port: 443,
2|video    |   config: {
2|video    |     transitional: {
2|video    |       silentJSONParsing: true,
2|video    |       forcedJSONParsing: true,
2|video    |       clarifyTimeoutError: false
2|video    |     },
2|video    |     adapter: [Function: httpAdapter],
2|video    |     transformRequest: [ [Function: transformRequest] ],
2|video    |     transformResponse: [ [Function: transformResponse] ],
2|video    |     timeout: 0,
2|video    |     xsrfCookieName: 'XSRF-TOKEN',
2|video    |     xsrfHeaderName: 'X-XSRF-TOKEN',
2|video    |     maxContentLength: -1,
2|video    |     maxBodyLength: -1,
2|video    |     validateStatus: [Function: validateStatus],
2|video    |     headers: {
2|video    |       Accept: 'application/json, text/plain, */*',
2|video    |       'Content-Type': 'application/json',
2|video    |       'User-Agent': 'axios/0.24.0',
2|video    |       'Content-Length': 462
2|video    |     },
2|video    |     method: 'post',
2|video    |     url: 'https://encoder-gateway.infra.3speak.tv/api/v0/gateway/pingJob',
2|video    |     data: '{"jws":{"payload":"eyJkb3dubG9hZF9wY3QiOjAuMTMsImpvYl9pZCI6ImQzMjc3ODJiLTBjOGEtNGI2MC05ZGI5LTUyZGJiNjNmZDc5MCIsInByb2dyZXNzUGN0Ijo3Mi4wMDg2MDIyMTQwMzY2N30","signatures":[{"protected":"eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDprZXk6ejZNa3dBOFVvSEFTdkhUM05MMUR3VVdVMVlMY1hjb29MU2NrbjZ0aVJVRlh5RVE1I3o2TWt3QThVb0hBU3ZIVDNOTDFEd1VXVTFZTGNYY29vTFNja242dGlSVUZYeUVRNSJ9","signature":"OOCX6Kk3oYaFnwiEYaT-ytNc7ot7XDWASEtFRnJ-dgahp5Rpk-6Fw-tSWzcHYFicnevXO-HCa_cMa1hS1ef5Ag"}]}}'
2|video    |   },
2|video    |   request: <ref *1> Writable {
2|video    |     _writableState: WritableState {
2|video    |       objectMode: false,
2|video    |       highWaterMark: 16384,
2|video    |       finalCalled: false,
2|video    |       needDrain: false,
2|video    |       ending: false,
2|video    |       ended: false,
2|video    |       finished: false,
2|video    |       destroyed: false,
2|video    |       decodeStrings: true,
2|video    |       defaultEncoding: 'utf8',
2|video    |       length: 0,
2|video    |       writing: false,
2|video    |       corked: 0,
2|video    |       sync: true,
2|video    |       bufferProcessing: false,
2|video    |       onwrite: [Function: bound onwrite],
2|video    |       writecb: null,
2|video    |       writelen: 0,
2|video    |       afterWriteTickInfo: null,
2|video    |       buffered: [],
2|video    |       bufferedIndex: 0,
2|video    |       allBuffers: true,
2|video    |       allNoop: true,
2|video    |       pendingcb: 0,
2|video    |       constructed: true,
2|video    |       prefinished: false,
2|video    |       errorEmitted: false,
2|video    |       emitClose: true,
2|video    |       autoDestroy: true,
2|video    |       errored: null,
2|video    |       closed: false,
2|video    |       closeEmitted: false,
2|video    |       [Symbol(kOnFinished)]: []
2|video    |     },
2|video    |     _events: [Object: null prototype] {
2|video    |       response: [Function: handleResponse],
2|video    |       error: [Function: handleRequestError]
2|video    |     },
2|video    |     _eventsCount: 2,
2|video    |     _maxListeners: undefined,
2|video    |     _options: {
2|video    |       maxRedirects: 21,
2|video    |       maxBodyLength: 10485760,
2|video    |       protocol: 'https:',
2|video    |       path: '/api/v0/gateway/pingJob',
2|video    |       method: 'POST',
2|video    |       headers: [Object],
2|video    |       agent: undefined,
2|video    |       agents: [Object],
2|video    |       auth: undefined,
2|video    |       hostname: 'encoder-gateway.infra.3speak.tv',
2|video    |       port: null,
2|video    |       nativeProtocols: [Object],
2|video    |       pathname: '/api/v0/gateway/pingJob'
2|video    |     },
2|video    |     _ended: false,
2|video    |     _ending: true,
2|video    |     _redirectCount: 0,
2|video    |     _redirects: [],
2|video    |     _requestBodyLength: 462,
2|video    |     _requestBodyBuffers: [ [Object] ],
2|video    |     _onNativeResponse: [Function (anonymous)],
2|video    |     _currentRequest: ClientRequest {
2|video    |       _events: [Object: null prototype],
2|video    |       _eventsCount: 7,
2|video    |       _maxListeners: undefined,
2|video    |       outputData: [],
2|video    |       outputSize: 0,
2|video    |       writable: true,
2|video    |       destroyed: false,
2|video    |       _last: true,
2|video    |       chunkedEncoding: false,
2|video    |       shouldKeepAlive: false,
2|video    |       maxRequestsOnConnectionReached: false,
2|video    |       _defaultKeepAlive: true,
2|video    |       useChunkedEncodingByDefault: true,
2|video    |       sendDate: false,
2|video    |       _removedConnection: false,
2|video    |       _removedContLen: false,
2|video    |       _removedTE: false,
2|video    |       _contentLength: null,
2|video    |       _hasBody: true,
2|video    |       _trailer: '',
2|video    |       finished: false,
2|video    |       _headerSent: true,
2|video    |       _closed: false,
2|video    |       socket: [TLSSocket],
2|video    |       _header: 'POST /api/v0/gateway/pingJob HTTP/1.1\r\n' +
2|video    |         'Accept: application/json, text/plain, */*\r\n' +
2|video    |         'Content-Type: application/json\r\n' +
2|video    |         'User-Agent: axios/0.24.0\r\n' +
2|video    |         'Content-Length: 462\r\n' +
2|video    |         'Host: encoder-gateway.infra.3speak.tv\r\n' +
2|video    |         'Connection: close\r\n' +
2|video    |         '\r\n',
2|video    |       _keepAliveTimeout: 0,
2|video    |       _onPendingData: [Function: nop],
2|video    |       agent: [Agent],
2|video    |       socketPath: undefined,
2|video    |       method: 'POST',
2|video    |       maxHeaderSize: undefined,
2|video    |       insecureHTTPParser: undefined,
2|video    |       path: '/api/v0/gateway/pingJob',
2|video    |       _ended: false,
2|video    |       res: null,
2|video    |       aborted: false,
2|video    |       timeoutCb: null,
2|video    |       upgradeOrConnect: false,
2|video    |       parser: null,
2|video    |       maxHeadersCount: null,
2|video    |       reusedSocket: false,
2|video    |       host: 'encoder-gateway.infra.3speak.tv',
2|video    |       protocol: 'https:',
2|video    |       _redirectable: [Circular *1],
2|video    |       [Symbol(kCapture)]: false,
2|video    |       [Symbol(kNeedDrain)]: false,
2|video    |       [Symbol(corked)]: 0,
2|video    |       [Symbol(kOutHeaders)]: [Object: null prototype]
2|video    |     },
2|video    |     _currentUrl: 'https://encoder-gateway.infra.3speak.tv/api/v0/gateway/pingJob',
2|video    |     [Symbol(kCapture)]: false
2|video    |   },
2|video    |   response: undefined,
2|video    |   isAxiosError: true,
2|video    |   toJSON: [Function: toJSON]
2|video    | }
2|video    | [not_found: missing] {
2|video    |   status: 404,
2|video    |   error: true,
2|video    |   reason: 'missing',
2|video    |   docId: 'f50946f3-be94-4b9f-ad0e-c48260b3bb2e'
2|video    | }
vaultec81 commented 1 year ago

Going to close in favor of #16