{"id":2084,"date":"2022-08-30T15:21:55","date_gmt":"2022-08-30T15:21:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/25\/hubot-fails-to-start-with-flowdock-adapter-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:21:55","modified_gmt":"2022-08-30T15:21:55","slug":"hubot-fails-to-start-with-flowdock-adapter-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/hubot-fails-to-start-with-flowdock-adapter-collection-of-common-programming-errors\/","title":{"rendered":"hubot fails to start with flowdock adapter-Collection of common programming errors"},"content":{"rendered":"<pre><code> node: 0.10.0\n npm: 1.2.14\n<\/code><\/pre>\n<p>I&#8217;ve set the environment variables <code>HUBOT_FLOWDOCK_LOGIN_EMAIL<\/code> and <code>HUBOT_FLOWDOCK_LOGIN_PASSWORD<\/code>, and then tried the following.<\/p>\n<p>Pulled down the prebuilt hubot from the hubot site. Modified the package.json as above. Run npm install<\/p>\n<p>Added<\/p>\n<pre><code> \"hubot-flowdock\": \"&gt;= 0.0.1\",\n<\/code><\/pre>\n<p>just underneath dependencies in my <code>package.json<\/code><\/p>\n<p>Removed redis from hubot-scripts.json<\/p>\n<p>run <code>npm install<\/code><\/p>\n<p>then running <code>.\/bin\/hubot -a flowdock -d<\/code><\/p>\n<p>With this implementation, <code>.\/bin\/hubot - flowdock<\/code><\/p>\n<p>Produces the following stacktrace:<\/p>\n<pre><code>    TypeError: Uncaught, unspecified \"error\" event.\n    at TypeError ()\n    at Session.EventEmitter.emit (events.js:74:15)\n    at Request._callback (\/Users\/gb\/workspace\/hubot-2.2.0\/node_modules\/hubot-flowdock\/node_modules\/flowdock\/lib\/flowdock.js:49:17)\n    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)\n    at Request.EventEmitter.emit (events.js:98:17)\n    at Request. (\/Users\/gb\/workspace\/hubot-2.2.0\/node_modules\/hubot-flowdock\/node_modules\/flowdock\/node_modules\/request\/main.js:661:16)\n    at Request.EventEmitter.emit (events.js:117:20)\n    at IncomingMessage. (\/Users\/gb\/workspace\/hubot-2.2.0\/node_modules\/hubot-flowdock\/node_modules\/flowdock\/node_modules\/request\/main.js:623:14)\n    at IncomingMessage.EventEmitter.emit (events.js:117:20)\n    at _stream_readable.js:870:14\n<\/code><\/pre>\n<p>Looking at \/Users\/gb\/workspace\/hubot-2.2.0\/node_modules\/hubot-flowdock\/node_modules\/flowdock\/lib\/flowdock.js:49:17, that is a fail on a response statusCode &gt; 300.<\/p>\n<p>So far so good. Adding a console.log to the line above produces &#8220;401&#8221; unauthorized.<\/p>\n<p>How? The credentials are correct (I log in with that email\/password routinely).<\/p>\n<ol>\n<li>\n<p>For anyone who cares, eventually I realized that my password was incorrect. I was attempting to use my email password, while the correct answer is to use the password you set up when you first connect to flowdock<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-25 10:55:24. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>node: 0.10.0 npm: 1.2.14 I&#8217;ve set the environment variables HUBOT_FLOWDOCK_LOGIN_EMAIL and HUBOT_FLOWDOCK_LOGIN_PASSWORD, and then tried the following. Pulled down the prebuilt hubot from the hubot site. Modified the package.json as above. Run npm install Added &#8220;hubot-flowdock&#8221;: &#8220;&gt;= 0.0.1&#8221;, just underneath dependencies in my package.json Removed redis from hubot-scripts.json run npm install then running .\/bin\/hubot -a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2084","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2084"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2084\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}