node: 0.10.0
npm: 1.2.14
我已经设置了环境变量HUBOT_FLOWDOCK_LOGIN_EMAIL
和HUBOT_FLOWDOCK_LOGIN_PASSWORD
,然后尝试以下操作。hubot无法启动flowdock适配器
从Hubot网站上拉下预构建的hubot。 如上修改了package.json。 运行NPM安装
新增
"hubot-flowdock": ">= 0.0.1",
在我package.json
删除从hubot-scripts.json Redis的正下方依赖
运行npm install
然后运行./bin/hubot -a flowdock -d
使用这种实现,./bin/hubot - flowdock
产生如下堆栈跟踪:
TypeError: Uncaught, unspecified "error" event.
at TypeError (<anonymous>)
at Session.EventEmitter.emit (events.js:74:15)
at Request._callback (/Users/gb/workspace/hubot-2.2.0/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:49:17)
at Request.self.callback (/Users/gb/workspace/hubot-2.2.0/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/Users/gb/workspace/hubot-2.2.0/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:661:16)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/Users/gb/workspace/hubot-2.2.0/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:623:14)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:870:14
看着/Users/gb/workspace/hubot-2.2.0/node_modules/hubot-flowdock/node_modules/flowdock/lib/ flowdock.js:49:17,这是一个响应statusCode> 300失败。
到目前为止好。添加一个console.log到上面的行会产生“401”未授权。
怎么样?凭据是正确的(我经常使用该电子邮件/密码登录)。