Title: Consistent socket hang up errors · Issue #68 · ConvertAPI/convertapi-library-node · GitHub
Open Graph Title: Consistent socket hang up errors · Issue #68 · ConvertAPI/convertapi-library-node
X Title: Consistent socket hang up errors · Issue #68 · ConvertAPI/convertapi-library-node
Description: Unfortunately the library has become broken, as it seems that any large file will result in a "socket hang up" error. Observe an errored request below. I think the solution involves setting Axios options around keep-alive. But there is n...
Open Graph Description: Unfortunately the library has become broken, as it seems that any large file will result in a "socket hang up" error. Observe an errored request below. I think the solution involves setting Axios o...
X Description: Unfortunately the library has become broken, as it seems that any large file will result in a "socket hang up" error. Observe an errored request below. I think the solution involves setti...
Opengraph URL: https://github.com/ConvertAPI/convertapi-library-node/issues/68
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consistent socket hang up errors","articleBody":"Unfortunately the library has become broken, as it seems that any large file will result in a \"socket hang up\" error. Observe an errored request below.\r\n\r\nI think the solution involves setting Axios options around keep-alive. But there is no way to pass Axios options...\r\n\r\n```\r\nError: socket hang up\r\n\u003cref *2\u003e Writable {\r\n _writableState: WritableState {\r\n objectMode: false,\r\n highWaterMark: 16384,\r\n finalCalled: false,\r\n needDrain: false,\r\n ending: false,\r\n ended: false,\r\n finished: false,\r\n destroyed: false,\r\n decodeStrings: true,\r\n defaultEncoding: 'utf8',\r\n length: 0,\r\n writing: false,\r\n corked: 0,\r\n sync: true,\r\n bufferProcessing: false,\r\n onwrite: [Function: bound onwrite],\r\n writecb: null,\r\n writelen: 0,\r\n afterWriteTickInfo: null,\r\n buffered: [],\r\n bufferedIndex: 0,\r\n allBuffers: true,\r\n allNoop: true,\r\n pendingcb: 0,\r\n constructed: true,\r\n prefinished: false,\r\n errorEmitted: false,\r\n emitClose: true,\r\n autoDestroy: true,\r\n errored: null,\r\n closed: false,\r\n closeEmitted: false,\r\n [Symbol(kOnFinished)]: []\r\n },\r\n _events: [Object: null prototype] {\r\n response: [Function: handleResponse],\r\n error: [Function: handleRequestError]\r\n },\r\n _eventsCount: 2,\r\n _maxListeners: undefined,\r\n _options: {\r\n maxRedirects: 21,\r\n maxBodyLength: 10485760,\r\n protocol: 'https:',\r\n path: '/convert/docx/to/jpg?secret=XXX',\r\n method: 'POST',\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/x-www-form-urlencoded',\r\n 'User-Agent': 'ConvertAPI-Node/1.11.2',\r\n 'Content-Length': 52\r\n },\r\n agent: undefined,\r\n agents: { http: undefined, https: undefined },\r\n auth: undefined,\r\n hostname: 'v2.convertapi.com',\r\n port: null,\r\n nativeProtocols: { 'http:': [Object], 'https:': [Object] },\r\n pathname: '/convert/docx/to/jpg',\r\n search: '?secret=XXX'\r\n },\r\n _ended: true,\r\n _ending: true,\r\n _redirectCount: 0,\r\n _redirects: [],\r\n _requestBodyLength: 52,\r\n _requestBodyBuffers: [\r\n {\r\n data: \u003cBuffer 46 69 6c 65 3d 77 75 65 32 79 6c 31 63 6c 30 6f 74 67 64 71 35 70 33 62 71 38 38 30 37 77 31 38 73 70 34 35 77 26 53 74 6f 72 65 46 69 6c 65 3d 74 72 ... 2 more bytes\u003e,\r\n encoding: undefined\r\n }\r\n ],\r\n _onNativeResponse: [Function (anonymous)],\r\n _currentRequest: \u003cref *1\u003e ClientRequest {\r\n _events: [Object: null prototype] {\r\n response: [Function],\r\n abort: [Function (anonymous)],\r\n aborted: [Function (anonymous)],\r\n connect: [Function (anonymous)],\r\n error: [Function (anonymous)],\r\n socket: [Function (anonymous)],\r\n timeout: [Function (anonymous)]\r\n },\r\n _eventsCount: 7,\r\n _maxListeners: undefined,\r\n outputData: [],\r\n outputSize: 0,\r\n writable: true,\r\n destroyed: true,\r\n _last: false,\r\n chunkedEncoding: false,\r\n shouldKeepAlive: true,\r\n maxRequestsOnConnectionReached: false,\r\n _defaultKeepAlive: true,\r\n useChunkedEncodingByDefault: true,\r\n sendDate: false,\r\n _removedConnection: false,\r\n _removedContLen: false,\r\n _removedTE: false,\r\n strictContentLength: false,\r\n _contentLength: 52,\r\n _hasBody: true,\r\n _trailer: '',\r\n finished: true,\r\n _headerSent: true,\r\n _closed: true,\r\n socket: TLSSocket {\r\n _tlsOptions: [Object],\r\n _secureEstablished: true,\r\n _securePending: false,\r\n _newSessionPending: false,\r\n _controlReleased: true,\r\n secureConnecting: false,\r\n _SNICallback: null,\r\n servername: 'v2.convertapi.com',\r\n alpnProtocol: false,\r\n authorized: true,\r\n authorizationError: null,\r\n encrypted: true,\r\n _events: [Object: null prototype],\r\n _eventsCount: 11,\r\n connecting: false,\r\n _hadError: true,\r\n _parent: null,\r\n _host: 'v2.convertapi.com',\r\n _closeAfterHandlingError: false,\r\n _readableState: [ReadableState],\r\n _maxListeners: undefined,\r\n _writableState: [WritableState],\r\n allowHalfOpen: false,\r\n _sockname: null,\r\n _pendingData: null,\r\n _pendingEncoding: '',\r\n server: undefined,\r\n _server: null,\r\n ssl: null,\r\n _requestCert: true,\r\n _rejectUnauthorized: true,\r\n timeout: 5000,\r\n parser: null,\r\n _httpMessage: [Circular *1],\r\n [Symbol(alpncallback)]: null,\r\n [Symbol(res)]: null,\r\n [Symbol(verified)]: true,\r\n [Symbol(pendingSession)]: null,\r\n [Symbol(async_id_symbol)]: 165,\r\n [Symbol(kHandle)]: null,\r\n [Symbol(lastWriteQueueSize)]: 0,\r\n [Symbol(timeout)]: Timeout {\r\n _idleTimeout: -1,\r\n _idlePrev: null,\r\n _idleNext: null,\r\n _idleStart: 3593,\r\n _onTimeout: null,\r\n _timerArgs: undefined,\r\n _repeat: null,\r\n _destroyed: true,\r\n [Symbol(refed)]: false,\r\n [Symbol(kHasPrimitive)]: false,\r\n [Symbol(asyncId)]: 163,\r\n [Symbol(triggerId)]: 161\r\n },\r\n [Symbol(kBuffer)]: null,\r\n [Symbol(kBufferCb)]: null,\r\n [Symbol(kBufferGen)]: null,\r\n [Symbol(kCapture)]: false,\r\n [Symbol(kSetNoDelay)]: false,\r\n [Symbol(kSetKeepAlive)]: true,\r\n [Symbol(kSetKeepAliveInitialDelay)]: 1,\r\n [Symbol(kBytesRead)]: 537,\r\n [Symbol(kBytesWritten)]: 96365,\r\n [Symbol(connect-options)]: [Object]\r\n },\r\n _header: 'POST /convert/docx/to/jpg?secret=XXX HTTP/1.1\\r\\n' +\r\n 'Accept: application/json\\r\\n' +\r\n 'Content-Type: application/x-www-form-urlencoded\\r\\n' +\r\n 'User-Agent: ConvertAPI-Node/1.11.2\\r\\n' +\r\n 'Content-Length: 52\\r\\n' +\r\n 'Host: v2.convertapi.com\\r\\n' +\r\n 'Connection: keep-alive\\r\\n' +\r\n '\\r\\n',\r\n _keepAliveTimeout: 0,\r\n _onPendingData: [Function: nop],\r\n agent: Agent {\r\n _events: [Object: null prototype],\r\n _eventsCount: 2,\r\n _maxListeners: undefined,\r\n defaultPort: 443,\r\n protocol: 'https:',\r\n options: [Object: null prototype],\r\n requests: [Object: null prototype] {},\r\n sockets: [Object: null prototype] {},\r\n freeSockets: [Object: null prototype] {},\r\n keepAliveMsecs: 1000,\r\n keepAlive: true,\r\n maxSockets: Infinity,\r\n maxFreeSockets: 256,\r\n scheduling: 'lifo',\r\n maxTotalSockets: Infinity,\r\n totalSocketCount: 0,\r\n maxCachedSessions: 100,\r\n _sessionCache: [Object],\r\n [Symbol(kCapture)]: false\r\n },\r\n socketPath: undefined,\r\n method: 'POST',\r\n maxHeaderSize: undefined,\r\n insecureHTTPParser: undefined,\r\n joinDuplicateHeaders: undefined,\r\n path: '/convert/docx/to/jpg?secret=XXX',\r\n _ended: false,\r\n res: null,\r\n aborted: false,\r\n timeoutCb: [Function: emitRequestTimeout],\r\n upgradeOrConnect: false,\r\n parser: null,\r\n maxHeadersCount: null,\r\n reusedSocket: true,\r\n host: 'v2.convertapi.com',\r\n protocol: 'https:',\r\n _redirectable: [Circular *2],\r\n [Symbol(kCapture)]: false,\r\n [Symbol(kBytesWritten)]: 0,\r\n [Symbol(kNeedDrain)]: false,\r\n [Symbol(corked)]: 0,\r\n [Symbol(kOutHeaders)]: [Object: null prototype] {\r\n accept: [Array],\r\n 'content-type': [Array],\r\n 'user-agent': [Array],\r\n 'content-length': [Array],\r\n host: [Array]\r\n },\r\n [Symbol(errored)]: null,\r\n [Symbol(kHighWaterMark)]: 16384,\r\n [Symbol(kRejectNonStandardBodyWrites)]: false,\r\n [Symbol(kUniqueHeaders)]: null\r\n },\r\n _currentUrl: 'https://v2.convertapi.com/convert/docx/to/jpg?secret=XXX',\r\n [Symbol(kCapture)]: false\r\n}\r\n```","author":{"url":"https://github.com/e10jon","@type":"Person","name":"e10jon"},"datePublished":"2023-09-19T13:00:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/68/convertapi-library-node/issues/68"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e15a8f45-4c03-c212-c7e2-f725eade0876 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B452:3CAE76:2D50C60:3B6157F:697D6506 |
| html-safe-nonce | d54034b2c52e29709aa7678d5b521309281929d694901e601c9e1ae407a97bd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDUyOjNDQUU3NjoyRDUwQzYwOjNCNjE1N0Y6Njk3RDY1MDYiLCJ2aXNpdG9yX2lkIjoiODIwNTk2Mjg4MTEyNDg4NTc2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d29476539fba8329c025101333e8370016319278f28fbeaabd6d7d752191b57d |
| hovercard-subject-tag | issue:1902931057 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ConvertAPI/convertapi-library-node/68/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dfac3d827323c9dbf4087ea6f9d4c1032eb2dd5e91ee56d5ebb5549b21156f2/ConvertAPI/convertapi-library-node/issues/68 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dfac3d827323c9dbf4087ea6f9d4c1032eb2dd5e91ee56d5ebb5549b21156f2/ConvertAPI/convertapi-library-node/issues/68 |
| og:image:alt | Unfortunately the library has become broken, as it seems that any large file will result in a "socket hang up" error. Observe an errored request below. I think the solution involves setting Axios o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | e10jon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/ConvertAPI/convertapi-library-node git https://github.com/ConvertAPI/convertapi-library-node.git |
| octolytics-dimension-user_id | 37071453 |
| octolytics-dimension-user_login | ConvertAPI |
| octolytics-dimension-repository_id | 140835661 |
| octolytics-dimension-repository_nwo | ConvertAPI/convertapi-library-node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 140835661 |
| octolytics-dimension-repository_network_root_nwo | ConvertAPI/convertapi-library-node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width