Skip to content

Instantly share code, notes, and snippets.

@xrd
Created June 29, 2010 22:53
Show Gist options
  • Save xrd/457952 to your computer and use it in GitHub Desktop.
Save xrd/457952 to your computer and use it in GitHub Desktop.
Chris-Dawsons-MacBook-Pro:node-lib xrdawson$ node foo.js
http:909
parser.finish();
^
TypeError: Cannot call method 'finish' of undefined
at Client.onend (http:909:12)
at IOWatcher.callback (net:493:28)
at node.js:221:9
Chris-Dawsons-MacBook-Pro:node-lib xrdawson$ cat foo.
cat: foo.: No such file or directory
Chris-Dawsons-MacBook-Pro:node-lib xrdawson$ cat foo.js
var restler = require( './restler/lib/restler' );
restler.get( 'http://realtimefight.com', { data : { foo : 'bar' } } ).addListener( 'complete', function(data) { var sys = require('sys'); sys.puts( "Done" ); } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment