Advertisement
Guest User

Untitled

a guest
Sep 7th, 2017
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.58 KB | None | 0 0
  1. IncomingMessage {
  2. _readableState:
  3. ReadableState {
  4. objectMode: false,
  5. highWaterMark: 16384,
  6. buffer: BufferList { head: null, tail: null, length: 0 },
  7. length: 0,
  8. pipes: null,
  9. pipesCount: 0,
  10. flowing: true,
  11. ended: true,
  12. endEmitted: true,
  13. reading: false,
  14. sync: true,
  15. needReadable: false,
  16. emittedReadable: false,
  17. readableListening: false,
  18. resumeScheduled: false,
  19. destroyed: false,
  20. defaultEncoding: 'utf8',
  21. awaitDrain: 0,
  22. readingMore: false,
  23. decoder: null,
  24. encoding: null },
  25. readable: false,
  26. domain: null,
  27. _events:
  28. { end: [ [Function: responseOnEnd], [Function] ],
  29. close: [ [Function], [Function] ],
  30. data: [Function],
  31. error: [Function] },
  32. _eventsCount: 4,
  33. _maxListeners: undefined,
  34. socket:
  35. TLSSocket {
  36. _tlsOptions:
  37. { pipe: null,
  38. secureContext: [Object],
  39. isServer: false,
  40. requestCert: true,
  41. rejectUnauthorized: true,
  42. session: undefined,
  43. NPNProtocols: undefined,
  44. ALPNProtocols: undefined,
  45. requestOCSP: undefined },
  46. _secureEstablished: true,
  47. _securePending: false,
  48. _newSessionPending: false,
  49. _controlReleased: true,
  50. _SNICallback: null,
  51. servername: null,
  52. npnProtocol: false,
  53. alpnProtocol: false,
  54. authorized: true,
  55. authorizationError: null,
  56. encrypted: true,
  57. _events:
  58. { close: [Array],
  59. end: [Object],
  60. finish: [Function: onSocketFinish],
  61. _socketEnd: [Function: onSocketEnd],
  62. secure: [Function],
  63. free: [Function: onFree],
  64. agentRemove: [Function: onRemove],
  65. drain: [Function: ondrain],
  66. error: [Function: socketErrorListener] },
  67. _eventsCount: 9,
  68. connecting: false,
  69. _hadError: false,
  70. _handle: null,
  71. _parent: null,
  72. _host: 'api.hubapi.com',
  73. _readableState:
  74. ReadableState {
  75. objectMode: false,
  76. highWaterMark: 16384,
  77. buffer: [Object],
  78. length: 0,
  79. pipes: null,
  80. pipesCount: 0,
  81. flowing: true,
  82. ended: false,
  83. endEmitted: false,
  84. reading: true,
  85. sync: false,
  86. needReadable: true,
  87. emittedReadable: false,
  88. readableListening: false,
  89. resumeScheduled: false,
  90. destroyed: true,
  91. defaultEncoding: 'utf8',
  92. awaitDrain: 0,
  93. readingMore: false,
  94. decoder: null,
  95. encoding: null },
  96. readable: false,
  97. domain: null,
  98. _maxListeners: undefined,
  99. _writableState:
  100. WritableState {
  101. objectMode: false,
  102. highWaterMark: 16384,
  103. finalCalled: false,
  104. needDrain: false,
  105. ending: true,
  106. ended: true,
  107. finished: true,
  108. destroyed: true,
  109. decodeStrings: false,
  110. defaultEncoding: 'utf8',
  111. length: 0,
  112. writing: false,
  113. corked: 0,
  114. sync: false,
  115. bufferProcessing: false,
  116. onwrite: [Function: bound onwrite],
  117. writecb: null,
  118. writelen: 0,
  119. bufferedRequest: null,
  120. lastBufferedRequest: null,
  121. pendingcb: 0,
  122. prefinished: true,
  123. errorEmitted: false,
  124. bufferedRequestCount: 0,
  125. corkedRequestsFree: [Object] },
  126. writable: false,
  127. allowHalfOpen: false,
  128. _bytesDispatched: 707,
  129. _sockname: null,
  130. _pendingData: null,
  131. _pendingEncoding: '',
  132. server: undefined,
  133. _server: null,
  134. ssl: null,
  135. _requestCert: true,
  136. _rejectUnauthorized: true,
  137. parser: null,
  138. _httpMessage:
  139. ClientRequest {
  140. domain: null,
  141. _events: [Object],
  142. _eventsCount: 5,
  143. _maxListeners: undefined,
  144. output: [],
  145. outputEncodings: [],
  146. outputCallbacks: [],
  147. outputSize: 0,
  148. writable: false,
  149. _last: true,
  150. upgrading: false,
  151. chunkedEncoding: false,
  152. shouldKeepAlive: false,
  153. useChunkedEncodingByDefault: true,
  154. sendDate: false,
  155. _removedConnection: false,
  156. _removedContLen: false,
  157. _removedTE: false,
  158. _contentLength: null,
  159. _hasBody: true,
  160. _trailer: '',
  161. finished: true,
  162. _headerSent: true,
  163. socket: [Circular],
  164. connection: [Circular],
  165. _header: 'POST /contacts/v1/contact?hapikey=&portalId= HTTP/1.1\r\nhost: api.hubapi.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 530\r\nConnection: close\r\n\r\n',
  166. _onPendingData: [Function: noopPendingOutput],
  167. agent: [Object],
  168. socketPath: undefined,
  169. timeout: undefined,
  170. method: 'POST',
  171. path: '/contacts/v1/contact?hapikey=&portalId=',
  172. _ended: true,
  173. res: [Circular],
  174. aborted: undefined,
  175. timeoutCb: null,
  176. upgradeOrConnect: false,
  177. parser: null,
  178. maxHeadersCount: null,
  179. [Symbol(outHeadersKey)]: [Object] },
  180. read: [Function],
  181. _consuming: true,
  182. _idleNext: null,
  183. _idlePrev: null,
  184. _idleTimeout: -1,
  185. [Symbol(asyncId)]: 76,
  186. [Symbol(bytesRead)]: 440 },
  187. connection:
  188. TLSSocket {
  189. _tlsOptions:
  190. { pipe: null,
  191. secureContext: [Object],
  192. isServer: false,
  193. requestCert: true,
  194. rejectUnauthorized: true,
  195. session: undefined,
  196. NPNProtocols: undefined,
  197. ALPNProtocols: undefined,
  198. requestOCSP: undefined },
  199. _secureEstablished: true,
  200. _securePending: false,
  201. _newSessionPending: false,
  202. _controlReleased: true,
  203. _SNICallback: null,
  204. servername: null,
  205. npnProtocol: false,
  206. alpnProtocol: false,
  207. authorized: true,
  208. authorizationError: null,
  209. encrypted: true,
  210. _events:
  211. { close: [Array],
  212. end: [Object],
  213. finish: [Function: onSocketFinish],
  214. _socketEnd: [Function: onSocketEnd],
  215. secure: [Function],
  216. free: [Function: onFree],
  217. agentRemove: [Function: onRemove],
  218. drain: [Function: ondrain],
  219. error: [Function: socketErrorListener] },
  220. _eventsCount: 9,
  221. connecting: false,
  222. _hadError: false,
  223. _handle: null,
  224. _parent: null,
  225. _host: 'api.hubapi.com',
  226. _readableState:
  227. ReadableState {
  228. objectMode: false,
  229. highWaterMark: 16384,
  230. buffer: [Object],
  231. length: 0,
  232. pipes: null,
  233. pipesCount: 0,
  234. flowing: true,
  235. ended: false,
  236. endEmitted: false,
  237. reading: true,
  238. sync: false,
  239. needReadable: true,
  240. emittedReadable: false,
  241. readableListening: false,
  242. resumeScheduled: false,
  243. destroyed: true,
  244. defaultEncoding: 'utf8',
  245. awaitDrain: 0,
  246. readingMore: false,
  247. decoder: null,
  248. encoding: null },
  249. readable: false,
  250. domain: null,
  251. _maxListeners: undefined,
  252. _writableState:
  253. WritableState {
  254. objectMode: false,
  255. highWaterMark: 16384,
  256. finalCalled: false,
  257. needDrain: false,
  258. ending: true,
  259. ended: true,
  260. finished: true,
  261. destroyed: true,
  262. decodeStrings: false,
  263. defaultEncoding: 'utf8',
  264. length: 0,
  265. writing: false,
  266. corked: 0,
  267. sync: false,
  268. bufferProcessing: false,
  269. onwrite: [Function: bound onwrite],
  270. writecb: null,
  271. writelen: 0,
  272. bufferedRequest: null,
  273. lastBufferedRequest: null,
  274. pendingcb: 0,
  275. prefinished: true,
  276. errorEmitted: false,
  277. bufferedRequestCount: 0,
  278. corkedRequestsFree: [Object] },
  279. writable: false,
  280. allowHalfOpen: false,
  281. _bytesDispatched: 707,
  282. _sockname: null,
  283. _pendingData: null,
  284. _pendingEncoding: '',
  285. server: undefined,
  286. _server: null,
  287. ssl: null,
  288. _requestCert: true,
  289. _rejectUnauthorized: true,
  290. parser: null,
  291. _httpMessage:
  292. ClientRequest {
  293. domain: null,
  294. _events: [Object],
  295. _eventsCount: 5,
  296. _maxListeners: undefined,
  297. output: [],
  298. outputEncodings: [],
  299. outputCallbacks: [],
  300. outputSize: 0,
  301. writable: false,
  302. _last: true,
  303. upgrading: false,
  304. chunkedEncoding: false,
  305. shouldKeepAlive: false,
  306. useChunkedEncodingByDefault: true,
  307. sendDate: false,
  308. _removedConnection: false,
  309. _removedContLen: false,
  310. _removedTE: false,
  311. _contentLength: null,
  312. _hasBody: true,
  313. _trailer: '',
  314. finished: true,
  315. _headerSent: true,
  316. socket: [Circular],
  317. connection: [Circular],
  318. _header: 'POST /contacts/v1/contact?hapikey=&portalId= HTTP/1.1\r\nhost: api.hubapi.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 530\r\nConnection: close\r\n\r\n',
  319. _onPendingData: [Function: noopPendingOutput],
  320. agent: [Object],
  321. socketPath: undefined,
  322. timeout: undefined,
  323. method: 'POST',
  324. path: '/contacts/v1/contact?hapikey=&portalId=',
  325. _ended: true,
  326. res: [Circular],
  327. aborted: undefined,
  328. timeoutCb: null,
  329. upgradeOrConnect: false,
  330. parser: null,
  331. maxHeadersCount: null,
  332. [Symbol(outHeadersKey)]: [Object] },
  333. read: [Function],
  334. _consuming: true,
  335. _idleNext: null,
  336. _idlePrev: null,
  337. _idleTimeout: -1,
  338. [Symbol(asyncId)]: 76,
  339. [Symbol(bytesRead)]: 440 },
  340. httpVersionMajor: 1,
  341. httpVersionMinor: 1,
  342. httpVersion: '1.1',
  343. complete: true,
  344. headers:
  345. { 'access-control-allow-credentials': 'false',
  346. 'content-type': 'application/json; charset=UTF-8',
  347. vary: 'Accept-Encoding, Accept-Encoding',
  348. 'content-length': '201',
  349. date: 'Thu, 07 Sep 2017 09:46:05 GMT',
  350. connection: 'close' },
  351. rawHeaders:
  352. [ 'Access-Control-Allow-Credentials',
  353. 'false',
  354. 'Content-Type',
  355. 'application/json; charset=UTF-8',
  356. 'Vary',
  357. 'Accept-Encoding',
  358. 'Vary',
  359. 'Accept-Encoding',
  360. 'Content-Length',
  361. '201',
  362. 'Date',
  363. 'Thu, 07 Sep 2017 09:46:05 GMT',
  364. 'Connection',
  365. 'close' ],
  366. trailers: {},
  367. rawTrailers: [],
  368. upgrade: false,
  369. url: '',
  370. method: null,
  371. statusCode: 400,
  372. statusMessage: 'Bad Request',
  373. client:
  374. TLSSocket {
  375. _tlsOptions:
  376. { pipe: null,
  377. secureContext: [Object],
  378. isServer: false,
  379. requestCert: true,
  380. rejectUnauthorized: true,
  381. session: undefined,
  382. NPNProtocols: undefined,
  383. ALPNProtocols: undefined,
  384. requestOCSP: undefined },
  385. _secureEstablished: true,
  386. _securePending: false,
  387. _newSessionPending: false,
  388. _controlReleased: true,
  389. _SNICallback: null,
  390. servername: null,
  391. npnProtocol: false,
  392. alpnProtocol: false,
  393. authorized: true,
  394. authorizationError: null,
  395. encrypted: true,
  396. _events:
  397. { close: [Array],
  398. end: [Object],
  399. finish: [Function: onSocketFinish],
  400. _socketEnd: [Function: onSocketEnd],
  401. secure: [Function],
  402. free: [Function: onFree],
  403. agentRemove: [Function: onRemove],
  404. drain: [Function: ondrain],
  405. error: [Function: socketErrorListener] },
  406. _eventsCount: 9,
  407. connecting: false,
  408. _hadError: false,
  409. _handle: null,
  410. _parent: null,
  411. _host: 'api.hubapi.com',
  412. _readableState:
  413. ReadableState {
  414. objectMode: false,
  415. highWaterMark: 16384,
  416. buffer: [Object],
  417. length: 0,
  418. pipes: null,
  419. pipesCount: 0,
  420. flowing: true,
  421. ended: false,
  422. endEmitted: false,
  423. reading: true,
  424. sync: false,
  425. needReadable: true,
  426. emittedReadable: false,
  427. readableListening: false,
  428. resumeScheduled: false,
  429. destroyed: true,
  430. defaultEncoding: 'utf8',
  431. awaitDrain: 0,
  432. readingMore: false,
  433. decoder: null,
  434. encoding: null },
  435. readable: false,
  436. domain: null,
  437. _maxListeners: undefined,
  438. _writableState:
  439. WritableState {
  440. objectMode: false,
  441. highWaterMark: 16384,
  442. finalCalled: false,
  443. needDrain: false,
  444. ending: true,
  445. ended: true,
  446. finished: true,
  447. destroyed: true,
  448. decodeStrings: false,
  449. defaultEncoding: 'utf8',
  450. length: 0,
  451. writing: false,
  452. corked: 0,
  453. sync: false,
  454. bufferProcessing: false,
  455. onwrite: [Function: bound onwrite],
  456. writecb: null,
  457. writelen: 0,
  458. bufferedRequest: null,
  459. lastBufferedRequest: null,
  460. pendingcb: 0,
  461. prefinished: true,
  462. errorEmitted: false,
  463. bufferedRequestCount: 0,
  464. corkedRequestsFree: [Object] },
  465. writable: false,
  466. allowHalfOpen: false,
  467. _bytesDispatched: 707,
  468. _sockname: null,
  469. _pendingData: null,
  470. _pendingEncoding: '',
  471. server: undefined,
  472. _server: null,
  473. ssl: null,
  474. _requestCert: true,
  475. _rejectUnauthorized: true,
  476. parser: null,
  477. _httpMessage:
  478. ClientRequest {
  479. domain: null,
  480. _events: [Object],
  481. _eventsCount: 5,
  482. _maxListeners: undefined,
  483. output: [],
  484. outputEncodings: [],
  485. outputCallbacks: [],
  486. outputSize: 0,
  487. writable: false,
  488. _last: true,
  489. upgrading: false,
  490. chunkedEncoding: false,
  491. shouldKeepAlive: false,
  492. useChunkedEncodingByDefault: true,
  493. sendDate: false,
  494. _removedConnection: false,
  495. _removedContLen: false,
  496. _removedTE: false,
  497. _contentLength: null,
  498. _hasBody: true,
  499. _trailer: '',
  500. finished: true,
  501. _headerSent: true,
  502. socket: [Circular],
  503. connection: [Circular],
  504. _header: 'POST /contacts/v1/contact?hapikey=&portalId= HTTP/1.1\r\nhost: api.hubapi.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 530\r\nConnection: close\r\n\r\n',
  505. _onPendingData: [Function: noopPendingOutput],
  506. agent: [Object],
  507. socketPath: undefined,
  508. timeout: undefined,
  509. method: 'POST',
  510. path: '/contacts/v1/contact?hapikey=&portalId=',
  511. _ended: true,
  512. res: [Circular],
  513. aborted: undefined,
  514. timeoutCb: null,
  515. upgradeOrConnect: false,
  516. parser: null,
  517. maxHeadersCount: null,
  518. [Symbol(outHeadersKey)]: [Object] },
  519. read: [Function],
  520. _consuming: true,
  521. _idleNext: null,
  522. _idlePrev: null,
  523. _idleTimeout: -1,
  524. [Symbol(asyncId)]: 76,
  525. [Symbol(bytesRead)]: 440 },
  526. _consuming: true,
  527. _dumped: false,
  528. req:
  529. ClientRequest {
  530. domain: null,
  531. _events:
  532. { socket: [Function],
  533. response: [Function: bound ],
  534. error: [Function: bound ],
  535. drain: [Function],
  536. prefinish: [Function: requestOnPrefinish] },
  537. _eventsCount: 5,
  538. _maxListeners: undefined,
  539. output: [],
  540. outputEncodings: [],
  541. outputCallbacks: [],
  542. outputSize: 0,
  543. writable: false,
  544. _last: true,
  545. upgrading: false,
  546. chunkedEncoding: false,
  547. shouldKeepAlive: false,
  548. useChunkedEncodingByDefault: true,
  549. sendDate: false,
  550. _removedConnection: false,
  551. _removedContLen: false,
  552. _removedTE: false,
  553. _contentLength: null,
  554. _hasBody: true,
  555. _trailer: '',
  556. finished: true,
  557. _headerSent: true,
  558. socket:
  559. TLSSocket {
  560. _tlsOptions: [Object],
  561. _secureEstablished: true,
  562. _securePending: false,
  563. _newSessionPending: false,
  564. _controlReleased: true,
  565. _SNICallback: null,
  566. servername: null,
  567. npnProtocol: false,
  568. alpnProtocol: false,
  569. authorized: true,
  570. authorizationError: null,
  571. encrypted: true,
  572. _events: [Object],
  573. _eventsCount: 9,
  574. connecting: false,
  575. _hadError: false,
  576. _handle: null,
  577. _parent: null,
  578. _host: 'api.hubapi.com',
  579. _readableState: [Object],
  580. readable: false,
  581. domain: null,
  582. _maxListeners: undefined,
  583. _writableState: [Object],
  584. writable: false,
  585. allowHalfOpen: false,
  586. _bytesDispatched: 707,
  587. _sockname: null,
  588. _pendingData: null,
  589. _pendingEncoding: '',
  590. server: undefined,
  591. _server: null,
  592. ssl: null,
  593. _requestCert: true,
  594. _rejectUnauthorized: true,
  595. parser: null,
  596. _httpMessage: [Circular],
  597. read: [Function],
  598. _consuming: true,
  599. _idleNext: null,
  600. _idlePrev: null,
  601. _idleTimeout: -1,
  602. [Symbol(asyncId)]: 76,
  603. [Symbol(bytesRead)]: 440 },
  604. connection:
  605. TLSSocket {
  606. _tlsOptions: [Object],
  607. _secureEstablished: true,
  608. _securePending: false,
  609. _newSessionPending: false,
  610. _controlReleased: true,
  611. _SNICallback: null,
  612. servername: null,
  613. npnProtocol: false,
  614. alpnProtocol: false,
  615. authorized: true,
  616. authorizationError: null,
  617. encrypted: true,
  618. _events: [Object],
  619. _eventsCount: 9,
  620. connecting: false,
  621. _hadError: false,
  622. _handle: null,
  623. _parent: null,
  624. _host: 'api.hubapi.com',
  625. _readableState: [Object],
  626. readable: false,
  627. domain: null,
  628. _maxListeners: undefined,
  629. _writableState: [Object],
  630. writable: false,
  631. allowHalfOpen: false,
  632. _bytesDispatched: 707,
  633. _sockname: null,
  634. _pendingData: null,
  635. _pendingEncoding: '',
  636. server: undefined,
  637. _server: null,
  638. ssl: null,
  639. _requestCert: true,
  640. _rejectUnauthorized: true,
  641. parser: null,
  642. _httpMessage: [Circular],
  643. read: [Function],
  644. _consuming: true,
  645. _idleNext: null,
  646. _idlePrev: null,
  647. _idleTimeout: -1,
  648. [Symbol(asyncId)]: 76,
  649. [Symbol(bytesRead)]: 440 },
  650. _header: 'POST /contacts/v1/contact?hapikey=&portalId= HTTP/1.1\r\nhost: api.hubapi.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 530\r\nConnection: close\r\n\r\n',
  651. _onPendingData: [Function: noopPendingOutput],
  652. agent:
  653. Agent {
  654. domain: null,
  655. _events: [Object],
  656. _eventsCount: 1,
  657. _maxListeners: undefined,
  658. defaultPort: 443,
  659. protocol: 'https:',
  660. options: [Object],
  661. requests: {},
  662. sockets: [Object],
  663. freeSockets: {},
  664. keepAliveMsecs: 1000,
  665. keepAlive: false,
  666. maxSockets: Infinity,
  667. maxFreeSockets: 256,
  668. maxCachedSessions: 100,
  669. _sessionCache: [Object] },
  670. socketPath: undefined,
  671. timeout: undefined,
  672. method: 'POST',
  673. path: '/contacts/v1/contact?hapikey=&portalId=',
  674. _ended: true,
  675. res: [Circular],
  676. aborted: undefined,
  677. timeoutCb: null,
  678. upgradeOrConnect: false,
  679. parser: null,
  680. maxHeadersCount: null,
  681. [Symbol(outHeadersKey)]:
  682. { host: [Array],
  683. accept: [Array],
  684. 'content-type': [Array],
  685. 'content-length': [Array] } },
  686. request:
  687. Request {
  688. domain: null,
  689. _events:
  690. { error: [Function: bound ],
  691. complete: [Function: bound ],
  692. pipe: [Function],
  693. data: [Function],
  694. end: [Function] },
  695. _eventsCount: 5,
  696. _maxListeners: undefined,
  697. method: 'POST',
  698. body: '{"properties":[{"property":"zip","value":10117},{"property":"select_kwh_est","value":105},{"property":"select_number_people","value":2},{"property":"select_green","value":"Truly_green"},{"property":"select_flex","value":"Flexible"},{"property":"select_service","value":"Quality"},{"property":"current_supplier","value":"E.ON"},{"property":"select_current_tarif","value":"Strom"},{"property":"email","value":"dfdfdf@chica.com"},{"property":"select_password","value":"$2a$10$jjYCmLtJLtd3ZGjRCB1HU.sLTH7uqhoTsUEwZkE9zUMKdKvaJEa8K"}]}',
  699. callback: [Function],
  700. readable: true,
  701. writable: true,
  702. explicitMethod: true,
  703. _qs:
  704. Querystring {
  705. request: [Circular],
  706. lib: [Object],
  707. useQuerystring: undefined,
  708. parseOptions: {},
  709. stringifyOptions: {} },
  710. _auth:
  711. Auth {
  712. request: [Circular],
  713. hasAuth: false,
  714. sentAuth: false,
  715. bearerToken: null,
  716. user: null,
  717. pass: null },
  718. _oauth: OAuth { request: [Circular], params: null },
  719. _multipart:
  720. Multipart {
  721. request: [Circular],
  722. boundary: 'dcff4d10-67b4-4e22-8d1c-ee6c48466c9d',
  723. chunked: false,
  724. body: null },
  725. _redirect:
  726. Redirect {
  727. request: [Circular],
  728. followRedirect: true,
  729. followRedirects: true,
  730. followAllRedirects: false,
  731. followOriginalHttpMethod: false,
  732. allowRedirect: [Function],
  733. maxRedirects: 10,
  734. redirects: [],
  735. redirectsFollowed: 0,
  736. removeRefererHeader: false },
  737. _tunnel:
  738. Tunnel {
  739. request: [Circular],
  740. proxyHeaderWhiteList: [Array],
  741. proxyHeaderExclusiveList: [] },
  742. headers:
  743. { accept: 'application/json',
  744. 'content-type': 'application/json',
  745. 'content-length': 530 },
  746. setHeader: [Function],
  747. hasHeader: [Function],
  748. getHeader: [Function],
  749. removeHeader: [Function],
  750. localAddress: undefined,
  751. pool: {},
  752. dests: [],
  753. __isRequestRequest: true,
  754. _callback: [Function],
  755. uri:
  756. Url {
  757. protocol: 'https:',
  758. slashes: true,
  759. auth: null,
  760. host: 'api.hubapi.com',
  761. port: 443,
  762. hostname: 'api.hubapi.com',
  763. hash: null,
  764. search: '?hapikey=&portalId=',
  765. query: 'hapikey=&portalId=',
  766. pathname: '/contacts/v1/contact',
  767. path: '/contacts/v1/contact?hapikey=&portalId=',
  768. href: 'https://api.hubapi.com/contacts/v1/contact?hapikey=&portalId=' },
  769. proxy: null,
  770. tunnel: true,
  771. setHost: true,
  772. originalCookieHeader: undefined,
  773. _disableCookies: true,
  774. _jar: undefined,
  775. port: 443,
  776. host: 'api.hubapi.com',
  777. path: '/contacts/v1/contact?hapikey=&portalId=',
  778. _json: true,
  779. httpModule:
  780. { Server: [Object],
  781. createServer: [Function: createServer],
  782. globalAgent: [Object],
  783. Agent: [Object],
  784. request: [Function: request],
  785. get: [Function: get] },
  786. agentClass: { [Function: Agent] super_: [Object] },
  787. agent:
  788. Agent {
  789. domain: null,
  790. _events: [Object],
  791. _eventsCount: 1,
  792. _maxListeners: undefined,
  793. defaultPort: 443,
  794. protocol: 'https:',
  795. options: [Object],
  796. requests: {},
  797. sockets: [Object],
  798. freeSockets: {},
  799. keepAliveMsecs: 1000,
  800. keepAlive: false,
  801. maxSockets: Infinity,
  802. maxFreeSockets: 256,
  803. maxCachedSessions: 100,
  804. _sessionCache: [Object] },
  805. _started: true,
  806. href: 'https://api.hubapi.com/contacts/v1/contact?hapikey=&portalId=',
  807. req:
  808. ClientRequest {
  809. domain: null,
  810. _events: [Object],
  811. _eventsCount: 5,
  812. _maxListeners: undefined,
  813. output: [],
  814. outputEncodings: [],
  815. outputCallbacks: [],
  816. outputSize: 0,
  817. writable: false,
  818. _last: true,
  819. upgrading: false,
  820. chunkedEncoding: false,
  821. shouldKeepAlive: false,
  822. useChunkedEncodingByDefault: true,
  823. sendDate: false,
  824. _removedConnection: false,
  825. _removedContLen: false,
  826. _removedTE: false,
  827. _contentLength: null,
  828. _hasBody: true,
  829. _trailer: '',
  830. finished: true,
  831. _headerSent: true,
  832. socket: [Object],
  833. connection: [Object],
  834. _header: 'POST /contacts/v1/contact?hapikey=&portalId= HTTP/1.1\r\nhost: api.hubapi.com\r\naccept: application/json\r\ncontent-type: application/json\r\ncontent-length: 530\r\nConnection: close\r\n\r\n',
  835. _onPendingData: [Function: noopPendingOutput],
  836. agent: [Object],
  837. socketPath: undefined,
  838. timeout: undefined,
  839. method: 'POST',
  840. path: '/contacts/v1/contact?hapikey=&portalId=',
  841. _ended: true,
  842. res: [Circular],
  843. aborted: undefined,
  844. timeoutCb: null,
  845. upgradeOrConnect: false,
  846. parser: null,
  847. maxHeadersCount: null,
  848. [Symbol(outHeadersKey)]: [Object] },
  849. ntick: true,
  850. response: [Circular],
  851. originalHost: 'api.hubapi.com',
  852. originalHostHeaderName: 'host',
  853. responseContent: [Circular],
  854. _destdata: true,
  855. _ended: true,
  856. _callbackCalled: true },
  857. toJSON: [Function: responseToJSON],
  858. caseless:
  859. Caseless {
  860. dict:
  861. { 'access-control-allow-credentials': 'false',
  862. 'content-type': 'application/json; charset=UTF-8',
  863. vary: 'Accept-Encoding, Accept-Encoding',
  864. 'content-length': '201',
  865. date: 'Thu, 07 Sep 2017 09:46:05 GMT',
  866. connection: 'close' } },
  867. read: [Function],
  868. body:
  869. { status: 'error',
  870. message: 'Unable to parse query string parameter (portalId=) into viable value',
  871. correlationId: '2005bc51-e858-4bda-8245-8cfafbf7aaef',
  872. requestId: 'd496356deaeaa3f7efef4d3d6b574a1e' } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement