Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { domain: null,
  2.   _events:
  3.    { error: [Function],
  4.      complete: [Function],
  5.      pipe: [Function],
  6.      end: [ [Function], [Function] ],
  7.      data: [Function] },
  8.   _maxListeners: 10,
  9.   uri:
  10.    { protocol: 'https:',
  11.      slashes: true,
  12.      auth: null,
  13.      host: 'staging.resin.io',
  14.      port: 443,
  15.      hostname: 'staging.resin.io',
  16.      hash: null,
  17.      search: null,
  18.      query: null,
  19.      pathname: '/ewa/application',
  20.      path: '/ewa/application',
  21.      href: 'https://staging.resin.io/ewa/application' },
  22.   callback: [Function],
  23.   resource: 'application',
  24.   data: { app_name: 'HelloResin', device_type: 'raspberry-pi' },
  25.   method: 'POST',
  26.   gzip: true,
  27.   headers:
  28.    { Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U',
  29.      'accept-encoding': 'gzip',
  30.      accept: 'application/json',
  31.      'content-length': 0 },
  32.   readable: true,
  33.   writable: true,
  34.   explicitMethod: true,
  35.   canTunnel: false,
  36.   setHeader: [Function],
  37.   hasHeader: [Function],
  38.   getHeader: [Function],
  39.   removeHeader: [Function],
  40.   localAddress: undefined,
  41.   qsLib: { stringify: [Function], parse: [Function] },
  42.   pool: {},
  43.   dests: [],
  44.   __isRequestRequest: true,
  45.   _callback: [Function],
  46.   proxy: null,
  47.   tunnel: false,
  48.   _redirectsFollowed: 0,
  49.   maxRedirects: 10,
  50.   allowRedirect: [Function],
  51.   followRedirects: true,
  52.   followAllRedirects: false,
  53.   redirects: [],
  54.   setHost: true,
  55.   originalCookieHeader: undefined,
  56.   _disableCookies: true,
  57.   _jar: undefined,
  58.   port: 443,
  59.   host: 'staging.resin.io',
  60.   path: '/ewa/application',
  61.   _json: true,
  62.   httpModule:
  63.    { Server: { [Function: Server] super_: [Object] },
  64.      createServer: [Function],
  65.      globalAgent:
  66.       { domain: null,
  67.         _events: [Object],
  68.         _maxListeners: 10,
  69.         options: {},
  70.         requests: {},
  71.         sockets: {},
  72.         maxSockets: 5,
  73.         createConnection: [Function: createConnection] },
  74.      Agent: { [Function: Agent] super_: [Object] },
  75.      request: [Function],
  76.      get: [Function] },
  77.   agentClass:
  78.    { [Function: Agent]
  79.      super_: { [Function: Agent] super_: [Object], defaultMaxSockets: 5 } },
  80.   agent:
  81.    { domain: null,
  82.      _events: { free: [Function] },
  83.      _maxListeners: 10,
  84.      options: {},
  85.      requests: {},
  86.      sockets: {},
  87.      maxSockets: 5,
  88.      createConnection: [Function: createConnection] },
  89.   _started: true,
  90.   href: 'https://staging.resin.io/ewa/application',
  91.   req:
  92.    { domain: null,
  93.      _events:
  94.       { socket: [Object],
  95.         response: [Function],
  96.         error: [Function],
  97.         drain: [Function] },
  98.      _maxListeners: 10,
  99.      output: [],
  100.      outputEncodings: [],
  101.      writable: true,
  102.      _last: false,
  103.      chunkedEncoding: false,
  104.      shouldKeepAlive: true,
  105.      useChunkedEncodingByDefault: true,
  106.      sendDate: false,
  107.      _headerSent: true,
  108.      _header: 'POST /ewa/application HTTP/1.1\r\nAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U\r\nhost: staging.resin.io\r\naccept-encoding: gzip\r\naccept: application/json\r\ncontent-length: 0\r\nConnection: keep-alive\r\n\r\n',
  109.      _hasBody: true,
  110.      _trailer: '',
  111.      finished: true,
  112.      _hangupClose: false,
  113.      socket:
  114.       { _readableState: [Object],
  115.         readable: false,
  116.         domain: null,
  117.         _events: [Object],
  118.         _maxListeners: 0,
  119.         _writableState: [Object],
  120.         writable: false,
  121.         allowHalfOpen: true,
  122.         pair: [Object],
  123.         _pending: null,
  124.         _pendingEncoding: '',
  125.         _pendingCallback: null,
  126.         _doneFlag: false,
  127.         _retryAfterPartial: false,
  128.         _halfRead: false,
  129.         _sslOutCb: null,
  130.         _resumingSession: false,
  131.         _reading: true,
  132.         _destroyed: true,
  133.         _ended: true,
  134.         _finished: false,
  135.         _opposite: [Object],
  136.         _buffer: [Object],
  137.         _handle: [Object],
  138.         socket: [Object],
  139.         encrypted: [Object],
  140.         authorized: true,
  141.         _controlReleased: true,
  142.         parser: null,
  143.         _httpMessage: [Circular],
  144.         ondata: null,
  145.         onend: null,
  146.         npnProtocol: undefined },
  147.      connection:
  148.       { _readableState: [Object],
  149.         readable: false,
  150.         domain: null,
  151.         _events: [Object],
  152.         _maxListeners: 0,
  153.         _writableState: [Object],
  154.         writable: false,
  155.         allowHalfOpen: true,
  156.         pair: [Object],
  157.         _pending: null,
  158.         _pendingEncoding: '',
  159.         _pendingCallback: null,
  160.         _doneFlag: false,
  161.         _retryAfterPartial: false,
  162.         _halfRead: false,
  163.         _sslOutCb: null,
  164.         _resumingSession: false,
  165.         _reading: true,
  166.         _destroyed: true,
  167.         _ended: true,
  168.         _finished: false,
  169.         _opposite: [Object],
  170.         _buffer: [Object],
  171.         _handle: [Object],
  172.         socket: [Object],
  173.         encrypted: [Object],
  174.         authorized: true,
  175.         _controlReleased: true,
  176.         parser: null,
  177.         _httpMessage: [Circular],
  178.         ondata: null,
  179.         onend: null,
  180.         npnProtocol: undefined },
  181.      agent:
  182.       { domain: null,
  183.         _events: [Object],
  184.         _maxListeners: 10,
  185.         options: {},
  186.         requests: {},
  187.         sockets: {},
  188.         maxSockets: 5,
  189.         createConnection: [Function: createConnection] },
  190.      socketPath: undefined,
  191.      method: 'POST',
  192.      path: '/ewa/application',
  193.      _headers:
  194.       { authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U',
  195.         host: 'staging.resin.io',
  196.         'accept-encoding': 'gzip',
  197.         accept: 'application/json',
  198.         'content-length': 0 },
  199.      _headerNames:
  200.       { authorization: 'Authorization',
  201.         host: 'host',
  202.         'accept-encoding': 'accept-encoding',
  203.         accept: 'accept',
  204.         'content-length': 'content-length' },
  205.      parser: null,
  206.      res:
  207.       { _readableState: [Object],
  208.         readable: false,
  209.         domain: null,
  210.         _events: [Object],
  211.         _maxListeners: 10,
  212.         socket: [Object],
  213.         connection: [Object],
  214.         httpVersion: '1.1',
  215.         complete: true,
  216.         headers: [Object],
  217.         trailers: {},
  218.         _pendings: [],
  219.         _pendingIndex: 0,
  220.         url: '',
  221.         method: null,
  222.         statusCode: 404,
  223.         client: [Object],
  224.         _consuming: true,
  225.         _dumped: false,
  226.         httpVersionMajor: 1,
  227.         httpVersionMinor: 1,
  228.         upgrade: false,
  229.         req: [Circular],
  230.         pipe: [Function],
  231.         addListener: [Function],
  232.         on: [Function],
  233.         pause: [Function],
  234.         resume: [Function],
  235.         read: [Function],
  236.         request: [Circular],
  237.         toJSON: [Function: responseToJSON],
  238.         caseless: [Object],
  239.         body: 'Unsupported device type' } },
  240.   ntick: true,
  241.   response:
  242.    { _readableState:
  243.       { highWaterMark: 16384,
  244.         buffer: [],
  245.         length: 0,
  246.         pipes: null,
  247.         pipesCount: 0,
  248.         flowing: false,
  249.         ended: true,
  250.         endEmitted: true,
  251.         reading: false,
  252.         calledRead: true,
  253.         sync: false,
  254.         needReadable: true,
  255.         emittedReadable: false,
  256.         readableListening: false,
  257.         objectMode: false,
  258.         defaultEncoding: 'utf8',
  259.         ranOut: false,
  260.         awaitDrain: 0,
  261.         readingMore: false,
  262.         decoder: null,
  263.         encoding: null },
  264.      readable: false,
  265.      domain: null,
  266.      _events:
  267.       { end: [Object],
  268.         readable: [Function],
  269.         close: [Object],
  270.         data: [Function],
  271.         error: [Function] },
  272.      _maxListeners: 10,
  273.      socket:
  274.       { _readableState: [Object],
  275.         readable: false,
  276.         domain: null,
  277.         _events: [Object],
  278.         _maxListeners: 0,
  279.         _writableState: [Object],
  280.         writable: false,
  281.         allowHalfOpen: true,
  282.         pair: [Object],
  283.         _pending: null,
  284.         _pendingEncoding: '',
  285.         _pendingCallback: null,
  286.         _doneFlag: false,
  287.         _retryAfterPartial: false,
  288.         _halfRead: false,
  289.         _sslOutCb: null,
  290.         _resumingSession: false,
  291.         _reading: true,
  292.         _destroyed: true,
  293.         _ended: true,
  294.         _finished: false,
  295.         _opposite: [Object],
  296.         _buffer: [Object],
  297.         _handle: [Object],
  298.         socket: [Object],
  299.         encrypted: [Object],
  300.         authorized: true,
  301.         _controlReleased: true,
  302.         parser: null,
  303.         _httpMessage: [Object],
  304.         ondata: null,
  305.         onend: null,
  306.         npnProtocol: undefined },
  307.      connection:
  308.       { _readableState: [Object],
  309.         readable: false,
  310.         domain: null,
  311.         _events: [Object],
  312.         _maxListeners: 0,
  313.         _writableState: [Object],
  314.         writable: false,
  315.         allowHalfOpen: true,
  316.         pair: [Object],
  317.         _pending: null,
  318.         _pendingEncoding: '',
  319.         _pendingCallback: null,
  320.         _doneFlag: false,
  321.         _retryAfterPartial: false,
  322.         _halfRead: false,
  323.         _sslOutCb: null,
  324.         _resumingSession: false,
  325.         _reading: true,
  326.         _destroyed: true,
  327.         _ended: true,
  328.         _finished: false,
  329.         _opposite: [Object],
  330.         _buffer: [Object],
  331.         _handle: [Object],
  332.         socket: [Object],
  333.         encrypted: [Object],
  334.         authorized: true,
  335.         _controlReleased: true,
  336.         parser: null,
  337.         _httpMessage: [Object],
  338.         ondata: null,
  339.         onend: null,
  340.         npnProtocol: undefined },
  341.      httpVersion: '1.1',
  342.      complete: true,
  343.      headers:
  344.       { 'access-control-allow-credentials': 'true',
  345.         'access-control-allow-headers': 'Content-Type, Authorization, Application-Record-Count, MaxDataServiceVersion, X-Requested-With',
  346.         'access-control-allow-methods': 'GET, PUT, POST, PATCH, DELETE, OPTIONS, HEAD',
  347.         'access-control-allow-origin': '*',
  348.         'content-type': 'application/json; charset=utf-8',
  349.         date: 'Mon, 24 Nov 2014 13:36:23 GMT',
  350.         vary: 'Accept-Encoding',
  351.         'x-powered-by': 'Express',
  352.         'content-length': '25',
  353.         connection: 'keep-alive' },
  354.      trailers: {},
  355.      _pendings: [],
  356.      _pendingIndex: 0,
  357.      url: '',
  358.      method: null,
  359.      statusCode: 404,
  360.      client:
  361.       { _readableState: [Object],
  362.         readable: false,
  363.         domain: null,
  364.         _events: [Object],
  365.         _maxListeners: 0,
  366.         _writableState: [Object],
  367.         writable: false,
  368.         allowHalfOpen: true,
  369.         pair: [Object],
  370.         _pending: null,
  371.         _pendingEncoding: '',
  372.         _pendingCallback: null,
  373.         _doneFlag: false,
  374.         _retryAfterPartial: false,
  375.         _halfRead: false,
  376.         _sslOutCb: null,
  377.         _resumingSession: false,
  378.         _reading: true,
  379.         _destroyed: true,
  380.         _ended: true,
  381.         _finished: false,
  382.         _opposite: [Object],
  383.         _buffer: [Object],
  384.         _handle: [Object],
  385.         socket: [Object],
  386.         encrypted: [Object],
  387.         authorized: true,
  388.         _controlReleased: true,
  389.         parser: null,
  390.         _httpMessage: [Object],
  391.         ondata: null,
  392.         onend: null,
  393.         npnProtocol: undefined },
  394.      _consuming: true,
  395.      _dumped: false,
  396.      httpVersionMajor: 1,
  397.      httpVersionMinor: 1,
  398.      upgrade: false,
  399.      req:
  400.       { domain: null,
  401.         _events: [Object],
  402.         _maxListeners: 10,
  403.         output: [],
  404.         outputEncodings: [],
  405.         writable: true,
  406.         _last: false,
  407.         chunkedEncoding: false,
  408.         shouldKeepAlive: true,
  409.         useChunkedEncodingByDefault: true,
  410.         sendDate: false,
  411.         _headerSent: true,
  412.         _header: 'POST /ewa/application HTTP/1.1\r\nAuthorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Imp2aW90dGkiLCJlbWFpbCI6Imp1YW5jaGl2aW90dGlAZ21haWwuY29tIiwiZ2l0bGFiX2lkIjoyMiwiaGFzUGFzc3dvcmRTZXQiOnRydWUsInB1YmxpY19rZXkiOnRydWUsImZlYXR1cmVzIjpbXSwiaWQiOjI0LCJwZXJtaXNzaW9ucyI6WyJld2EuZGV2aWNlLmdldCIsImFkbWluLmhvbWUiLCJhZG1pbi5sb2dpbl9hc191c2VyIiwiYWRtaW4uY3JlYXRlX2ludml0ZXMiXSwiaWF0IjoxNDE2NDk4ODk5fQ.o1qnm7M1AwdEFIxcUZBncc_9okJSvpu6GYqzurS9i-U\r\nhost: staging.resin.io\r\naccept-encoding: gzip\r\naccept: application/json\r\ncontent-length: 0\r\nConnection: keep-alive\r\n\r\n',
  413.         _hasBody: true,
  414.         _trailer: '',
  415.         finished: true,
  416.         _hangupClose: false,
  417.         socket: [Object],
  418.         connection: [Object],
  419.         agent: [Object],
  420.         socketPath: undefined,
  421.         method: 'POST',
  422.         path: '/ewa/application',
  423.         _headers: [Object],
  424.         _headerNames: [Object],
  425.         parser: null,
  426.         res: [Circular] },
  427.      pipe: [Function],
  428.      addListener: [Function],
  429.      on: [Function],
  430.      pause: [Function],
  431.      resume: [Function],
  432.      read: [Function],
  433.      request: [Circular],
  434.      toJSON: [Function: responseToJSON],
  435.      caseless: { dict: [Object] },
  436.      body: 'Unsupported device type' },
  437.   originalHost: 'staging.resin.io',
  438.   originalHostHeaderName: 'host',
  439.   _destdata: true,
  440.   _ended: true,
  441.   _callbackCalled: true }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement