Advertisement
aix_aix

Untitled

Aug 8th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.89 KB | None | 0 0
  1. defaultEncoding: 'utf8',
  2. length: 0,
  3. writing: false,
  4. corked: 0,
  5. sync: false,
  6. bufferProcessing: false,
  7. onwrite: [Function: bound onwrite],
  8. writecb: null,
  9. writelen: 0,
  10. bufferedRequest: null,
  11. lastBufferedRequest: null,
  12. pendingcb: 1,
  13. prefinished: false,
  14. errorEmitted: false,
  15. emitClose: false,
  16. bufferedRequestCount: 0,
  17. corkedRequestsFree: [Object] },
  18. writable: false,
  19. allowHalfOpen: false,
  20. _sockname: null,
  21. _pendingData: null,
  22. _pendingEncoding: '',
  23. server: undefined,
  24. _server: null,
  25. ssl:
  26. TLSWrap {
  27. _parent: [TCP],
  28. _parentWrap: undefined,
  29. _secureContext: [SecureContext],
  30. reading: true,
  31. owner: [Circular],
  32. onread: [Function: onread],
  33. onhandshakestart: [Function: noop],
  34. onhandshakedone: [Function: bound ],
  35. onocspresponse: [Function: onocspresponse],
  36. onerror: [Function: onerror] },
  37. _requestCert: true,
  38. _rejectUnauthorized: true,
  39. parser: null,
  40. _httpMessage:
  41. ClientRequest {
  42. domain: null,
  43. _events: [Object],
  44. _eventsCount: 5,
  45. _maxListeners: undefined,
  46. output: [],
  47. outputEncodings: [],
  48. outputCallbacks: [],
  49. outputSize: 0,
  50. writable: true,
  51. _last: true,
  52. chunkedEncoding: false,
  53. shouldKeepAlive: false,
  54. useChunkedEncodingByDefault: true,
  55. sendDate: false,
  56. _removedConnection: false,
  57. _removedContLen: false,
  58. _removedTE: false,
  59. _contentLength: 0,
  60. _hasBody: true,
  61. _trailer: '',
  62. finished: true,
  63. _headerSent: true,
  64. socket: [Circular],
  65. connection: [Circular],
  66. _header:
  67. 'POST /v3/add HTTP/1.1\r\nhost: getpocket.com\r\ncontent-length: 0\r\nConnection: close\r\n\r\n',
  68. _onPendingData: [Function: noopPendingOutput],
  69. agent: [Agent],
  70. socketPath: undefined,
  71. timeout: undefined,
  72. method: 'POST',
  73. path: '/v3/add',
  74. _ended: true,
  75. res: [Circular],
  76. aborted: undefined,
  77. timeoutCb: null,
  78. upgradeOrConnect: false,
  79. parser: null,
  80. maxHeadersCount: null,
  81. [Symbol(isCorked)]: false,
  82. [Symbol(outHeadersKey)]: [Object] },
  83. [Symbol(res)]:
  84. TLSWrap {
  85. _parent: [TCP],
  86. _parentWrap: undefined,
  87. _secureContext: [SecureContext],
  88. reading: true,
  89. owner: [Circular],
  90. onread: [Function: onread],
  91. onhandshakestart: [Function: noop],
  92. onhandshakedone: [Function: bound ],
  93. onocspresponse: [Function: onocspresponse],
  94. onerror: [Function: onerror] },
  95. [Symbol(asyncId)]: 10,
  96. [Symbol(lastWriteQueueSize)]: 0,
  97. [Symbol(timeout)]: null,
  98. [Symbol(kBytesRead)]: 0,
  99. [Symbol(kBytesWritten)]: 0,
  100. [Symbol(connect-options)]:
  101. { rejectUnauthorized: true,
  102. ciphers:
  103. 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
  104. checkServerIdentity: [Function: checkServerIdentity],
  105. minDHSize: 1024,
  106. encoding: null,
  107. _agentKey: 'getpocket.com:443::::::::::::::::',
  108. href: 'https://getpocket.com/v3/add',
  109. _started: true,
  110. agent: [Agent],
  111. agentClass: [Function],
  112. httpModule: [Object],
  113. path: null,
  114. host: 'getpocket.com',
  115. port: 443,
  116. _jar: undefined,
  117. _disableCookies: true,
  118. originalCookieHeader: undefined,
  119. setHost: true,
  120. tunnel: true,
  121. proxy: null,
  122. uri: [Url],
  123. _callback: [Function],
  124. __isRequestRequest: true,
  125. dests: [],
  126. pool: {},
  127. localAddress: undefined,
  128. removeHeader: [Function],
  129. getHeader: [Function],
  130. hasHeader: [Function],
  131. setHeader: [Function],
  132. headers: [Object],
  133. _tunnel: [Tunnel],
  134. _redirect: [Redirect],
  135. _multipart: [Multipart],
  136. _oauth: [OAuth],
  137. _auth: [Auth],
  138. _qs: [Querystring],
  139. explicitMethod: true,
  140. writable: true,
  141. readable: true,
  142. callback: [Function],
  143. data:
  144. '{"url":"test.com","title":"test title","consumer_key":"79276-856c12ff023f1c0324ad038c","access_token":"9ee4002f-3f74-a68f-0a7e-bf77aa"}',
  145. method: 'POST',
  146. _maxListeners: undefined,
  147. _eventsCount: 3,
  148. _events: [Object],
  149. domain: null,
  150. _defaultAgent: [Agent],
  151. servername: 'getpocket.com',
  152. singleUse: true } },
  153. connection:
  154. TLSSocket {
  155. _tlsOptions:
  156. { pipe: false,
  157. secureContext: [SecureContext],
  158. isServer: false,
  159. requestCert: true,
  160. rejectUnauthorized: true,
  161. session: undefined,
  162. ALPNProtocols: undefined,
  163. requestOCSP: undefined },
  164. _secureEstablished: true,
  165. _securePending: false,
  166. _newSessionPending: false,
  167. _controlReleased: true,
  168. _SNICallback: null,
  169. servername: 'getpocket.com',
  170. alpnProtocol: false,
  171. authorized: true,
  172. authorizationError: null,
  173. encrypted: true,
  174. _events:
  175. { close: [Array],
  176. end: [Function: onReadableStreamEnd],
  177. secure: [Function: onConnectSecure],
  178. free: [Function: onFree],
  179. agentRemove: [Function: onRemove],
  180. drain: [Function: ondrain],
  181. error: [Function: socketErrorListener],
  182. finish: [Function] },
  183. _eventsCount: 8,
  184. connecting: false,
  185. _hadError: false,
  186. _handle:
  187. TLSWrap {
  188. _parent: [TCP],
  189. _parentWrap: undefined,
  190. _secureContext: [SecureContext],
  191. reading: true,
  192. owner: [Circular],
  193. onread: [Function: onread],
  194. onhandshakestart: [Function: noop],
  195. onhandshakedone: [Function: bound ],
  196. onocspresponse: [Function: onocspresponse],
  197. onerror: [Function: onerror] },
  198. _parent: null,
  199. _host: 'getpocket.com',
  200. _readableState:
  201. ReadableState {
  202. objectMode: false,
  203. highWaterMark: 16384,
  204. buffer: BufferList { length: 0 },
  205. length: 0,
  206. pipes: null,
  207. pipesCount: 0,
  208. flowing: true,
  209. ended: false,
  210. endEmitted: false,
  211. reading: true,
  212. sync: false,
  213. needReadable: true,
  214. emittedReadable: false,
  215. readableListening: false,
  216. resumeScheduled: false,
  217. emitClose: false,
  218. destroyed: false,
  219. defaultEncoding: 'utf8',
  220. awaitDrain: 0,
  221. readingMore: false,
  222. decoder: null,
  223. encoding: null },
  224. readable: true,
  225. domain: null,
  226. _maxListeners: undefined,
  227. _writableState:
  228. WritableState {
  229. objectMode: false,
  230. highWaterMark: 16384,
  231. finalCalled: true,
  232. needDrain: false,
  233. ending: true,
  234. ended: true,
  235. finished: false,
  236. destroyed: false,
  237. decodeStrings: false,
  238. defaultEncoding: 'utf8',
  239. length: 0,
  240. writing: false,
  241. corked: 0,
  242. sync: false,
  243. bufferProcessing: false,
  244. onwrite: [Function: bound onwrite],
  245. writecb: null,
  246. writelen: 0,
  247. bufferedRequest: null,
  248. lastBufferedRequest: null,
  249. pendingcb: 1,
  250. prefinished: false,
  251. errorEmitted: false,
  252. emitClose: false,
  253. bufferedRequestCount: 0,
  254. corkedRequestsFree: [Object] },
  255. writable: false,
  256. allowHalfOpen: false,
  257. _sockname: null,
  258. _pendingData: null,
  259. _pendingEncoding: '',
  260. server: undefined,
  261. _server: null,
  262. ssl:
  263. TLSWrap {
  264. _parent: [TCP],
  265. _parentWrap: undefined,
  266. _secureContext: [SecureContext],
  267. reading: true,
  268. owner: [Circular],
  269. onread: [Function: onread],
  270. onhandshakestart: [Function: noop],
  271. onhandshakedone: [Function: bound ],
  272. onocspresponse: [Function: onocspresponse],
  273. onerror: [Function: onerror] },
  274. _requestCert: true,
  275. _rejectUnauthorized: true,
  276. parser: null,
  277. _httpMessage:
  278. ClientRequest {
  279. domain: null,
  280. _events: [Object],
  281. _eventsCount: 5,
  282. _maxListeners: undefined,
  283. output: [],
  284. outputEncodings: [],
  285. outputCallbacks: [],
  286. outputSize: 0,
  287. writable: true,
  288. _last: true,
  289. chunkedEncoding: false,
  290. shouldKeepAlive: false,
  291. useChunkedEncodingByDefault: true,
  292. sendDate: false,
  293. _removedConnection: false,
  294. _removedContLen: false,
  295. _removedTE: false,
  296. _contentLength: 0,
  297. _hasBody: true,
  298. _trailer: '',
  299. finished: true,
  300. _headerSent: true,
  301. socket: [Circular],
  302. connection: [Circular],
  303. _header:
  304. 'POST /v3/add HTTP/1.1\r\nhost: getpocket.com\r\ncontent-length: 0\r\nConnection: close\r\n\r\n',
  305. _onPendingData: [Function: noopPendingOutput],
  306. agent: [Agent],
  307. socketPath: undefined,
  308. timeout: undefined,
  309. method: 'POST',
  310. path: '/v3/add',
  311. _ended: true,
  312. res: [Circular],
  313. aborted: undefined,
  314. timeoutCb: null,
  315. upgradeOrConnect: false,
  316. parser: null,
  317. maxHeadersCount: null,
  318. [Symbol(isCorked)]: false,
  319. [Symbol(outHeadersKey)]: [Object] },
  320. [Symbol(res)]:
  321. TLSWrap {
  322. _parent: [TCP],
  323. _parentWrap: undefined,
  324. _secureContext: [SecureContext],
  325. reading: true,
  326. owner: [Circular],
  327. onread: [Function: onread],
  328. onhandshakestart: [Function: noop],
  329. onhandshakedone: [Function: bound ],
  330. onocspresponse: [Function: onocspresponse],
  331. onerror: [Function: onerror] },
  332. [Symbol(asyncId)]: 10,
  333. [Symbol(lastWriteQueueSize)]: 0,
  334. [Symbol(timeout)]: null,
  335. [Symbol(kBytesRead)]: 0,
  336. [Symbol(kBytesWritten)]: 0,
  337. [Symbol(connect-options)]:
  338. { rejectUnauthorized: true,
  339. ciphers:
  340. 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
  341. checkServerIdentity: [Function: checkServerIdentity],
  342. minDHSize: 1024,
  343. encoding: null,
  344. _agentKey: 'getpocket.com:443::::::::::::::::',
  345. href: 'https://getpocket.com/v3/add',
  346. _started: true,
  347. agent: [Agent],
  348. agentClass: [Function],
  349. httpModule: [Object],
  350. path: null,
  351. host: 'getpocket.com',
  352. port: 443,
  353. _jar: undefined,
  354. _disableCookies: true,
  355. originalCookieHeader: undefined,
  356. setHost: true,
  357. tunnel: true,
  358. proxy: null,
  359. uri: [Url],
  360. _callback: [Function],
  361. __isRequestRequest: true,
  362. dests: [],
  363. pool: {},
  364. localAddress: undefined,
  365. removeHeader: [Function],
  366. getHeader: [Function],
  367. hasHeader: [Function],
  368. setHeader: [Function],
  369. headers: [Object],
  370. _tunnel: [Tunnel],
  371. _redirect: [Redirect],
  372. _multipart: [Multipart],
  373. _oauth: [OAuth],
  374. _auth: [Auth],
  375. _qs: [Querystring],
  376. explicitMethod: true,
  377. writable: true,
  378. readable: true,
  379. callback: [Function],
  380. data:
  381. '{"url":"test.com","title":"test title","consumer_key":"79276-856c12ff023f1c0324ad038c","access_token":"9ee4002f-3f74-a68f-0a7e-bf77aa"}',
  382. method: 'POST',
  383. _maxListeners: undefined,
  384. _eventsCount: 3,
  385. _events: [Object],
  386. domain: null,
  387. _defaultAgent: [Agent],
  388. servername: 'getpocket.com',
  389. singleUse: true } },
  390. httpVersionMajor: 1,
  391. httpVersionMinor: 1,
  392. httpVersion: '1.1',
  393. complete: true,
  394. headers:
  395. { 'content-type': 'text/html; charset=UTF-8',
  396. date: 'Thu, 09 Aug 2018 01:30:44 GMT',
  397. p3p:
  398. 'policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA PRE"',
  399. server: 'Apache',
  400. status: '400 Bad Request',
  401. 'x-error':
  402. 'Missing API key. Get an API key at http:\\/\\/getpocket.com\\/api\\/.',
  403. 'x-error-code': '132',
  404. 'x-frame-options': 'SAMEORIGIN',
  405. 'x-source': 'Pocket',
  406. 'content-length': '15',
  407. connection: 'Close' },
  408. rawHeaders:
  409. [ 'Content-Type',
  410. 'text/html; charset=UTF-8',
  411. 'Date',
  412. 'Thu, 09 Aug 2018 01:30:44 GMT',
  413. 'P3P',
  414. 'policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA PRE"',
  415. 'Server',
  416. 'Apache',
  417. 'Status',
  418. '400 Bad Request',
  419. 'X-Error',
  420. 'Missing API key. Get an API key at http:\\/\\/getpocket.com\\/api\\/.',
  421. 'X-Error-Code',
  422. '132',
  423. 'X-Frame-Options',
  424. 'SAMEORIGIN',
  425. 'X-Source',
  426. 'Pocket',
  427. 'Content-Length',
  428. '15',
  429. 'Connection',
  430. 'Close' ],
  431. trailers: {},
  432. rawTrailers: [],
  433. aborted: false,
  434. upgrade: false,
  435. url: '',
  436. method: null,
  437. statusCode: 400,
  438. statusMessage: 'Bad Request',
  439. client:
  440. TLSSocket {
  441. _tlsOptions:
  442. { pipe: false,
  443. secureContext: [SecureContext],
  444. isServer: false,
  445. requestCert: true,
  446. rejectUnauthorized: true,
  447. session: undefined,
  448. ALPNProtocols: undefined,
  449. requestOCSP: undefined },
  450. _secureEstablished: true,
  451. _securePending: false,
  452. _newSessionPending: false,
  453. _controlReleased: true,
  454. _SNICallback: null,
  455. servername: 'getpocket.com',
  456. alpnProtocol: false,
  457. authorized: true,
  458. authorizationError: null,
  459. encrypted: true,
  460. _events:
  461. { close: [Array],
  462. end: [Function: onReadableStreamEnd],
  463. secure: [Function: onConnectSecure],
  464. free: [Function: onFree],
  465. agentRemove: [Function: onRemove],
  466. drain: [Function: ondrain],
  467. error: [Function: socketErrorListener],
  468. finish: [Function] },
  469. _eventsCount: 8,
  470. connecting: false,
  471. _hadError: false,
  472. _handle:
  473. TLSWrap {
  474. _parent: [TCP],
  475. _parentWrap: undefined,
  476. _secureContext: [SecureContext],
  477. reading: true,
  478. owner: [Circular],
  479. onread: [Function: onread],
  480. onhandshakestart: [Function: noop],
  481. onhandshakedone: [Function: bound ],
  482. onocspresponse: [Function: onocspresponse],
  483. onerror: [Function: onerror] },
  484. _parent: null,
  485. _host: 'getpocket.com',
  486. _readableState:
  487. ReadableState {
  488. objectMode: false,
  489. highWaterMark: 16384,
  490. buffer: BufferList { length: 0 },
  491. length: 0,
  492. pipes: null,
  493. pipesCount: 0,
  494. flowing: true,
  495. ended: false,
  496. endEmitted: false,
  497. reading: true,
  498. sync: false,
  499. needReadable: true,
  500. emittedReadable: false,
  501. readableListening: false,
  502. resumeScheduled: false,
  503. emitClose: false,
  504. destroyed: false,
  505. defaultEncoding: 'utf8',
  506. awaitDrain: 0,
  507. readingMore: false,
  508. decoder: null,
  509. encoding: null },
  510. readable: true,
  511. domain: null,
  512. _maxListeners: undefined,
  513. _writableState:
  514. WritableState {
  515. objectMode: false,
  516. highWaterMark: 16384,
  517. finalCalled: true,
  518. needDrain: false,
  519. ending: true,
  520. ended: true,
  521. finished: false,
  522. destroyed: false,
  523. decodeStrings: false,
  524. defaultEncoding: 'utf8',
  525. length: 0,
  526. writing: false,
  527. corked: 0,
  528. sync: false,
  529. bufferProcessing: false,
  530. onwrite: [Function: bound onwrite],
  531. writecb: null,
  532. writelen: 0,
  533. bufferedRequest: null,
  534. lastBufferedRequest: null,
  535. pendingcb: 1,
  536. prefinished: false,
  537. errorEmitted: false,
  538. emitClose: false,
  539. bufferedRequestCount: 0,
  540. corkedRequestsFree: [Object] },
  541. writable: false,
  542. allowHalfOpen: false,
  543. _sockname: null,
  544. _pendingData: null,
  545. _pendingEncoding: '',
  546. server: undefined,
  547. _server: null,
  548. ssl:
  549. TLSWrap {
  550. _parent: [TCP],
  551. _parentWrap: undefined,
  552. _secureContext: [SecureContext],
  553. reading: true,
  554. owner: [Circular],
  555. onread: [Function: onread],
  556. onhandshakestart: [Function: noop],
  557. onhandshakedone: [Function: bound ],
  558. onocspresponse: [Function: onocspresponse],
  559. onerror: [Function: onerror] },
  560. _requestCert: true,
  561. _rejectUnauthorized: true,
  562. parser: null,
  563. _httpMessage:
  564. ClientRequest {
  565. domain: null,
  566. _events: [Object],
  567. _eventsCount: 5,
  568. _maxListeners: undefined,
  569. output: [],
  570. outputEncodings: [],
  571. outputCallbacks: [],
  572. outputSize: 0,
  573. writable: true,
  574. _last: true,
  575. chunkedEncoding: false,
  576. shouldKeepAlive: false,
  577. useChunkedEncodingByDefault: true,
  578. sendDate: false,
  579. _removedConnection: false,
  580. _removedContLen: false,
  581. _removedTE: false,
  582. _contentLength: 0,
  583. _hasBody: true,
  584. _trailer: '',
  585. finished: true,
  586. _headerSent: true,
  587. socket: [Circular],
  588. connection: [Circular],
  589. _header:
  590. 'POST /v3/add HTTP/1.1\r\nhost: getpocket.com\r\ncontent-length: 0\r\nConnection: close\r\n\r\n',
  591. _onPendingData: [Function: noopPendingOutput],
  592. agent: [Agent],
  593. socketPath: undefined,
  594. timeout: undefined,
  595. method: 'POST',
  596. path: '/v3/add',
  597. _ended: true,
  598. res: [Circular],
  599. aborted: undefined,
  600. timeoutCb: null,
  601. upgradeOrConnect: false,
  602. parser: null,
  603. maxHeadersCount: null,
  604. [Symbol(isCorked)]: false,
  605. [Symbol(outHeadersKey)]: [Object] },
  606. [Symbol(res)]:
  607. TLSWrap {
  608. _parent: [TCP],
  609. _parentWrap: undefined,
  610. _secureContext: [SecureContext],
  611. reading: true,
  612. owner: [Circular],
  613. onread: [Function: onread],
  614. onhandshakestart: [Function: noop],
  615. onhandshakedone: [Function: bound ],
  616. onocspresponse: [Function: onocspresponse],
  617. onerror: [Function: onerror] },
  618. [Symbol(asyncId)]: 10,
  619. [Symbol(lastWriteQueueSize)]: 0,
  620. [Symbol(timeout)]: null,
  621. [Symbol(kBytesRead)]: 0,
  622. [Symbol(kBytesWritten)]: 0,
  623. [Symbol(connect-options)]:
  624. { rejectUnauthorized: true,
  625. ciphers:
  626. 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
  627. checkServerIdentity: [Function: checkServerIdentity],
  628. minDHSize: 1024,
  629. encoding: null,
  630. _agentKey: 'getpocket.com:443::::::::::::::::',
  631. href: 'https://getpocket.com/v3/add',
  632. _started: true,
  633. agent: [Agent],
  634. agentClass: [Function],
  635. httpModule: [Object],
  636. path: null,
  637. host: 'getpocket.com',
  638. port: 443,
  639. _jar: undefined,
  640. _disableCookies: true,
  641. originalCookieHeader: undefined,
  642. setHost: true,
  643. tunnel: true,
  644. proxy: null,
  645. uri: [Url],
  646. _callback: [Function],
  647. __isRequestRequest: true,
  648. dests: [],
  649. pool: {},
  650. localAddress: undefined,
  651. removeHeader: [Function],
  652. getHeader: [Function],
  653. hasHeader: [Function],
  654. setHeader: [Function],
  655. headers: [Object],
  656. _tunnel: [Tunnel],
  657. _redirect: [Redirect],
  658. _multipart: [Multipart],
  659. _oauth: [OAuth],
  660. _auth: [Auth],
  661. _qs: [Querystring],
  662. explicitMethod: true,
  663. writable: true,
  664. readable: true,
  665. callback: [Function],
  666. data:
  667. '{"url":"test.com","title":"test title","consumer_key":"79276-856c12ff023f1c0324ad038c","access_token":"9ee4002f-3f74-a68f-0a7e-bf77aa"}',
  668. method: 'POST',
  669. _maxListeners: undefined,
  670. _eventsCount: 3,
  671. _events: [Object],
  672. domain: null,
  673. _defaultAgent: [Agent],
  674. servername: 'getpocket.com',
  675. singleUse: true } },
  676. _consuming: false,
  677. _dumped: false,
  678. req:
  679. ClientRequest {
  680. domain: null,
  681. _events:
  682. { socket: [Function],
  683. response: [Function: bound ],
  684. error: [Function: bound ],
  685. drain: [Function],
  686. prefinish: [Function: requestOnPrefinish] },
  687. _eventsCount: 5,
  688. _maxListeners: undefined,
  689. output: [],
  690. outputEncodings: [],
  691. outputCallbacks: [],
  692. outputSize: 0,
  693. writable: true,
  694. _last: true,
  695. chunkedEncoding: false,
  696. shouldKeepAlive: false,
  697. useChunkedEncodingByDefault: true,
  698. sendDate: false,
  699. _removedConnection: false,
  700. _removedContLen: false,
  701. _removedTE: false,
  702. _contentLength: 0,
  703. _hasBody: true,
  704. _trailer: '',
  705. finished: true,
  706. _headerSent: true,
  707. socket:
  708. TLSSocket {
  709. _tlsOptions: [Object],
  710. _secureEstablished: true,
  711. _securePending: false,
  712. _newSessionPending: false,
  713. _controlReleased: true,
  714. _SNICallback: null,
  715. servername: 'getpocket.com',
  716. alpnProtocol: false,
  717. authorized: true,
  718. authorizationError: null,
  719. encrypted: true,
  720. _events: [Object],
  721. _eventsCount: 8,
  722. connecting: false,
  723. _hadError: false,
  724. _handle: [TLSWrap],
  725. _parent: null,
  726. _host: 'getpocket.com',
  727. _readableState: [ReadableState],
  728. readable: true,
  729. domain: null,
  730. _maxListeners: undefined,
  731. _writableState: [WritableState],
  732. writable: false,
  733. allowHalfOpen: false,
  734. _sockname: null,
  735. _pendingData: null,
  736. _pendingEncoding: '',
  737. server: undefined,
  738. _server: null,
  739. ssl: [TLSWrap],
  740. _requestCert: true,
  741. _rejectUnauthorized: true,
  742. parser: null,
  743. _httpMessage: [Circular],
  744. [Symbol(res)]: [TLSWrap],
  745. [Symbol(asyncId)]: 10,
  746. [Symbol(lastWriteQueueSize)]: 0,
  747. [Symbol(timeout)]: null,
  748. [Symbol(kBytesRead)]: 0,
  749. [Symbol(kBytesWritten)]: 0,
  750. [Symbol(connect-options)]: [Object] },
  751. connection:
  752. TLSSocket {
  753. _tlsOptions: [Object],
  754. _secureEstablished: true,
  755. _securePending: false,
  756. _newSessionPending: false,
  757. _controlReleased: true,
  758. _SNICallback: null,
  759. servername: 'getpocket.com',
  760. alpnProtocol: false,
  761. authorized: true,
  762. authorizationError: null,
  763. encrypted: true,
  764. _events: [Object],
  765. _eventsCount: 8,
  766. connecting: false,
  767. _hadError: false,
  768. _handle: [TLSWrap],
  769. _parent: null,
  770. _host: 'getpocket.com',
  771. _readableState: [ReadableState],
  772. readable: true,
  773. domain: null,
  774. _maxListeners: undefined,
  775. _writableState: [WritableState],
  776. writable: false,
  777. allowHalfOpen: false,
  778. _sockname: null,
  779. _pendingData: null,
  780. _pendingEncoding: '',
  781. server: undefined,
  782. _server: null,
  783. ssl: [TLSWrap],
  784. _requestCert: true,
  785. _rejectUnauthorized: true,
  786. parser: null,
  787. _httpMessage: [Circular],
  788. [Symbol(res)]: [TLSWrap],
  789. [Symbol(asyncId)]: 10,
  790. [Symbol(lastWriteQueueSize)]: 0,
  791. [Symbol(timeout)]: null,
  792. [Symbol(kBytesRead)]: 0,
  793. [Symbol(kBytesWritten)]: 0,
  794. [Symbol(connect-options)]: [Object] },
  795. _header:
  796. 'POST /v3/add HTTP/1.1\r\nhost: getpocket.com\r\ncontent-length: 0\r\nConnection: close\r\n\r\n',
  797. _onPendingData: [Function: noopPendingOutput],
  798. agent:
  799. Agent {
  800. domain: null,
  801. _events: [Object],
  802. _eventsCount: 1,
  803. _maxListeners: undefined,
  804. defaultPort: 443,
  805. protocol: 'https:',
  806. options: [Object],
  807. requests: {},
  808. sockets: [Object],
  809. freeSockets: {},
  810. keepAliveMsecs: 1000,
  811. keepAlive: false,
  812. maxSockets: Infinity,
  813. maxFreeSockets: 256,
  814. maxCachedSessions: 100,
  815. _sessionCache: [Object] },
  816. socketPath: undefined,
  817. timeout: undefined,
  818. method: 'POST',
  819. path: '/v3/add',
  820. _ended: true,
  821. res: [Circular],
  822. aborted: undefined,
  823. timeoutCb: null,
  824. upgradeOrConnect: false,
  825. parser: null,
  826. maxHeadersCount: null,
  827. [Symbol(isCorked)]: false,
  828. [Symbol(outHeadersKey)]: { host: [Array], 'content-length': [Array] } },
  829. request:
  830. Request {
  831. domain: null,
  832. _events:
  833. { error: [Function: bound ],
  834. complete: [Function: bound ],
  835. pipe: [Function],
  836. data: [Function],
  837. end: [Function] },
  838. _eventsCount: 5,
  839. _maxListeners: undefined,
  840. method: 'POST',
  841. data:
  842. '{"url":"test.com","title":"test title","consumer_key":"79276-856c12ff023f1c0324ad038c","access_token":"9ee4002f-3f74-a68f-0a7e-bf77aa"}',
  843. callback: [Function],
  844. readable: true,
  845. writable: true,
  846. explicitMethod: true,
  847. _qs:
  848. Querystring {
  849. request: [Circular],
  850. lib: [Object],
  851. useQuerystring: undefined,
  852. parseOptions: {},
  853. stringifyOptions: {} },
  854. _auth:
  855. Auth {
  856. request: [Circular],
  857. hasAuth: false,
  858. sentAuth: false,
  859. bearerToken: null,
  860. user: null,
  861. pass: null },
  862. _oauth: OAuth { request: [Circular], params: null },
  863. _multipart:
  864. Multipart {
  865. request: [Circular],
  866. boundary: '898a66f4-fe53-43a5-9aa5-45684bef1cb3',
  867. chunked: false,
  868. body: null },
  869. _redirect:
  870. Redirect {
  871. request: [Circular],
  872. followRedirect: true,
  873. followRedirects: true,
  874. followAllRedirects: false,
  875. followOriginalHttpMethod: false,
  876. allowRedirect: [Function],
  877. maxRedirects: 10,
  878. redirects: [],
  879. redirectsFollowed: 0,
  880. removeRefererHeader: false },
  881. _tunnel:
  882. Tunnel {
  883. request: [Circular],
  884. proxyHeaderWhiteList: [Array],
  885. proxyHeaderExclusiveList: [] },
  886. headers: { 'content-length': 0 },
  887. setHeader: [Function],
  888. hasHeader: [Function],
  889. getHeader: [Function],
  890. removeHeader: [Function],
  891. localAddress: undefined,
  892. pool: {},
  893. dests: [],
  894. __isRequestRequest: true,
  895. _callback: [Function],
  896. uri:
  897. Url {
  898. protocol: 'https:',
  899. slashes: true,
  900. auth: null,
  901. host: 'getpocket.com',
  902. port: 443,
  903. hostname: 'getpocket.com',
  904. hash: null,
  905. search: null,
  906. query: null,
  907. pathname: '/v3/add',
  908. path: '/v3/add',
  909. href: 'https://getpocket.com/v3/add' },
  910. proxy: null,
  911. tunnel: true,
  912. setHost: true,
  913. originalCookieHeader: undefined,
  914. _disableCookies: true,
  915. _jar: undefined,
  916. port: 443,
  917. host: 'getpocket.com',
  918. path: '/v3/add',
  919. httpModule:
  920. { Agent: [Function],
  921. globalAgent: [Agent],
  922. Server: [Function],
  923. createServer: [Function: createServer],
  924. get: [Function: get],
  925. request: [Function: request] },
  926. agentClass: { [Function: Agent] super_: [Function] },
  927. agent:
  928. Agent {
  929. domain: null,
  930. _events: [Object],
  931. _eventsCount: 1,
  932. _maxListeners: undefined,
  933. defaultPort: 443,
  934. protocol: 'https:',
  935. options: [Object],
  936. requests: {},
  937. sockets: [Object],
  938. freeSockets: {},
  939. keepAliveMsecs: 1000,
  940. keepAlive: false,
  941. maxSockets: Infinity,
  942. maxFreeSockets: 256,
  943. maxCachedSessions: 100,
  944. _sessionCache: [Object] },
  945. _started: true,
  946. href: 'https://getpocket.com/v3/add',
  947. req:
  948. ClientRequest {
  949. domain: null,
  950. _events: [Object],
  951. _eventsCount: 5,
  952. _maxListeners: undefined,
  953. output: [],
  954. outputEncodings: [],
  955. outputCallbacks: [],
  956. outputSize: 0,
  957. writable: true,
  958. _last: true,
  959. chunkedEncoding: false,
  960. shouldKeepAlive: false,
  961. useChunkedEncodingByDefault: true,
  962. sendDate: false,
  963. _removedConnection: false,
  964. _removedContLen: false,
  965. _removedTE: false,
  966. _contentLength: 0,
  967. _hasBody: true,
  968. _trailer: '',
  969. finished: true,
  970. _headerSent: true,
  971. socket: [TLSSocket],
  972. connection: [TLSSocket],
  973. _header:
  974. 'POST /v3/add HTTP/1.1\r\nhost: getpocket.com\r\ncontent-length: 0\r\nConnection: close\r\n\r\n',
  975. _onPendingData: [Function: noopPendingOutput],
  976. agent: [Agent],
  977. socketPath: undefined,
  978. timeout: undefined,
  979. method: 'POST',
  980. path: '/v3/add',
  981. _ended: true,
  982. res: [Circular],
  983. aborted: undefined,
  984. timeoutCb: null,
  985. upgradeOrConnect: false,
  986. parser: null,
  987. maxHeadersCount: null,
  988. [Symbol(isCorked)]: false,
  989. [Symbol(outHeadersKey)]: [Object] },
  990. ntick: true,
  991. response: [Circular],
  992. originalHost: 'getpocket.com',
  993. originalHostHeaderName: 'host',
  994. responseContent: [Circular],
  995. _destdata: true,
  996. _ended: true,
  997. _callbackCalled: true },
  998. toJSON: [Function: responseToJSON],
  999. caseless:
  1000. Caseless {
  1001. dict:
  1002. { 'content-type': 'text/html; charset=UTF-8',
  1003. date: 'Thu, 09 Aug 2018 01:30:44 GMT',
  1004. p3p:
  1005. 'policyref="/w3c/p3p.xml", CP="ALL CURa ADMa DEVa OUR IND UNI COM NAV INT STA PRE"',
  1006. server: 'Apache',
  1007. status: '400 Bad Request',
  1008. 'x-error':
  1009. 'Missing API key. Get an API key at http:\\/\\/getpocket.com\\/api\\/.',
  1010. 'x-error-code': '132',
  1011. 'x-frame-options': 'SAMEORIGIN',
  1012. 'x-source': 'Pocket',
  1013. 'content-length': '15',
  1014. connection: 'Close' } },
  1015. body: '400 Bad Request' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement