Skip to content

Instantly share code, notes, and snippets.

@josephg
Created November 1, 2011 09:04
Show Gist options
  • Save josephg/1330190 to your computer and use it in GitHub Desktop.
Save josephg/1330190 to your computer and use it in GitHub Desktop.
Connect is broken in 0.5.10
connect = require 'connect'
request = require 'request'
connect(
connect.logger()
connect.static __dirname
).listen 3000, ->
request "http://localhost:3000/c.coffee", (err, resp, body) ->
console.warn err.stack if err
$ coffee c.coffee
Error: connect ECONNREFUSED
at errnoException (net.js:589:11)
at Object.afterConnect [as oncomplete] (net.js:580:18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment