iangreenleaf/hubot-partychat-hooks — Issue #1: Address already in use error with hubot 2.1.3
Author: crymer11
Created: 2012-02-09 08:02:08+00:00
State: open

Trying to run hubot 2.1.3 with the partychat-hooks adapter 0.2.1 causes the app to crash during loading. This has been replicated on Heroku's cedar stack and Mac OS 10.6, node.js v0.4.12

Steps to Reproduce:
1. Install Hubot 2.1.3.
2. Update `packages.json` to include `"partychat-hooks "hubot-partychat-hooks": "0.x"`.
3. Set the `HUBOT_POST_ENDPOINT` environment variable.
4. For Heroku, change the `Procfile` to `web: bin/hubot -a partychat-hooks -n Hubot`; on the command line, execute `bin/hubot -a partychat-hooks -n Hubot`.

```
$ bin/hubot -a partychat-hooks -n hubot

[Thu, 09 Feb 2012 07:48:19 GMT] INFO Loading scripts from /Users/Colin/Projects/partychat_hubot/scripts
[Thu, 09 Feb 2012 07:48:19 GMT] INFO Loading scripts from /Users/Colin/Projects/partychat_hubot/src/scripts
Error: EADDRINUSE, Address already in use
at Server._doListen (net.js:1100:5)
at net.js:1071:14
at Object.lookup (dns.js:159:5)
at Server.listen (net.js:1065:20)
at PartychatAdapter.run (/Users/Colin/Projects/partychat_hubot/node_modules/hubot-partychat-hooks/src/partychat.coffee:45:21)
at Robot.run (/Users/Colin/Projects/partychat_hubot/node_modules/hubot/src/robot.coffee:290:27)
at Object. (/Users/Colin/Projects/partychat_hubot/node_modules/hubot/bin/hubot:102:11)
at Object. (/Users/Colin/Projects/partychat_hubot/node_modules/hubot/bin/hubot:105:4)
at Module._compile (module.js:411:26)
at Object.run (/Users/Colin/Projects/partychat_hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:68:25)
```