Skip to content

Instantly share code, notes, and snippets.

@stagas
Created October 23, 2010 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stagas/642587 to your computer and use it in GitHub Desktop.
Save stagas/642587 to your computer and use it in GitHub Desktop.
$ node test.js
null { socket:
{ fd: 5
, type: 'tcp4'
, secure: false
, _writeImpl: [Function]
, _readImpl: [Function]
, _shutdownImpl: [Function]
, _outgoing: [ [Object] ]
, __destroyOnDrain: false
, ondrain: [Function]
, _events:
{ connect: [Function]
, secure: [Function]
, close: [Function]
}
, port: '2480'
, host: 'localhost'
, https: false
, credentials: undefined
, _readWatcher: { callback: [Function] }
, readable: true
, _writeQueue: []
, _writeQueueEncoding: []
, _writeQueueFD: []
, _writeWatcher: { socket: [Circular], callback: [Function: _doFlush] }
, writable: false
, _connecting: false
, ondata: [Function: onData]
, onend: [Function: onEnd]
, parser:
{ onMessageBegin: [Function]
, onURL: [Function]
, onHeaderField: [Function]
, onHeaderValue: [Function]
, onHeadersComplete: [Function]
, onBody: [Function]
, onMessageComplete: [Function]
, socket: [Circular]
, onIncoming: [Function]
, incoming: [Circular]
, field: 'content-length'
, value: '17'
}
}
, connection: [Circular]
, httpVersion: '1.1'
, headers:
{ 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate'
, pragma: 'no-cache'
, date: 'Sat Oct 23 22:23:44 EEST 2010'
, 'content-type': 'text/plain'
, server: 'OrientDB Server v.0.9.22'
, connection: 'Close'
, 'www-authenticate': 'Basic realm="OrientDB db-testtttt"'
, 'set-cookie': 'OSESSIONID=-; Path=/; HttpOnly'
, 'content-length': '17'
}
, url: ''
, method: null
, statusCode: 401
, client: [Circular]
, httpVersionMajor: 1
, httpVersionMinor: 1
, upgrade: false
, _events: { end: [ [Function], [Function] ], data: [Function] }
} '401 Unauthorized.'
401 Unauthorized.
node.js:63
throw e;
^
Error: Parse Error
at Client.onData [as ondata] (http:848:27)
at IOWatcher.callback (net:494:29)
at node.js:768:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment