node: 0.10.0
npm: 1.2.14
我已设置环境变量HUBOT_FLOWDOCK_LOGIN_EMAIL
和HUBOT_FLOWDOCK_LOGIN_PASSWORD
,然后尝试以下操作。
从hubot站点下拉预建的hubot。 如上修改了package.json。 运行npm install
已添加
"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&gt;的失败; 300。
到目前为止一切顺利。将console.log添加到上面的行会导致“401”未经授权。
如何?凭据是正确的(我定期登录该电子邮件/密码)。
答案 0 :(得分:0)
对于任何关心的人,最终我意识到我的密码不正确。我试图使用我的电子邮件密码,而正确的答案是使用您第一次连接到flowdock时设置的密码