Created
June 29, 2010 22:53
-
-
Save xrd/457952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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