Comments (7)
Strange. the 0.2.5 version of the adapter works fine, so something about 0.3.0 is incompatible with hubot 2.2.0 maybe?
from hubot-flowdock.
Yeah, it seems that most recent commit in master changes the style of requiring Hubot to be compatible with 2.3.x:
SHA: 3117473
This means that the adapter version 0.3.0 is not anymore compatible with the older 2.2.x versions of Hubot. I'll document this to the adapter README to avoid confusion. :)
from hubot-flowdock.
This still doesn't work for me. Not only that, but hubot-flowdock doesn't seem to be listening to my environment variables...
♬ echo $HUBOT_FLOWDOCK_LOGIN_EMAIL
[email protected]
♬ ./bin/hubot -a flowdock
ERROR: No credentials in environment variables HUBOT_FLOWDOCK_LOGIN_EMAIL and HUBOT_FLOWDOCK_LOGIN_PASSWORD
Error: Uncaught, unspecified 'error' event.
at Flowdock.emit (events.js:50:15)
at Flowdock.run (/Users/tom/Code/fubot/node_modules/hubot-flowdock/src/flowdock.coffee:77:14)
at Robot.run (/Users/tom/Code/fubot/node_modules/hubot/src/robot.coffee:338:27)
at Object.<anonymous> (/Users/tom/Code/fubot/node_modules/hubot/bin/hubot:106:11)
at Object.<anonymous> (/Users/tom/Code/fubot/node_modules/hubot/bin/hubot:109:4)
at Module._compile (module.js:432:26)
at Object.run (/Users/tom/Code/fubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at /Users/tom/Code/fubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:175:29
at /Users/tom/Code/fubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:150:18
at [object Object].<anonymous> (fs.js:115:5)
When I pass those values in through the command line, I get:
♬ [email protected] HUBOT_FLOWDOCK_LOGIN_PASSWORD=something ./bin/hubot -a flowdock
The "sys" module is now called "util". It should have a similar interface.
events.js:50
throw new Error("Uncaught, unspecified 'error' event.");
^
Error: Uncaught, unspecified 'error' event.
at Session.emit (events.js:50:15)
at Request._callback (/Users/tom/Code/fubot/node_modules/hubot-flowdock/node_modules/flowdock/lib/flowdock.js:48:17)
at Request.callback (/Users/tom/Code/fubot/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:118:22)
at Request.<anonymous> (/Users/tom/Code/fubot/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:459:16)
at Request.emit (events.js:67:17)
at IncomingMessage.<anonymous> (/Users/tom/Code/fubot/node_modules/hubot-flowdock/node_modules/flowdock/node_modules/request/main.js:418:14)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at CleartextStream.ondata (http.js:1137:24)
at CleartextStream._push (tls.js:367:27)
from hubot-flowdock.
Sorry for the delay in answering to this. I can reproduce this error if I give wrong credentials for the environment variables. Are you sure you don't have a typo there or some special characters in password that could be mangled in the command line input?
There should probably be a better handling for invalid credentials anyway, this error message is pretty confusing.
from hubot-flowdock.
It works if I export
the variables, but yeah it would be cool if it at least checked for these variables.
from hubot-flowdock.
I was using an ancient version of Node (I think v0.6?), and when I updated to 8 everything worked. So maybe just instruct people to update if they see this bug again. :)
from hubot-flowdock.
Thanks for debugging this! I'll add a note to the README about using a recent Node version. :)
from hubot-flowdock.
Related Issues (20)
- Add `hubot-adapter` topic
- Migration to JavaScript / ES2015
- How to address a user's 1:1 flow? HOT 1
- res.reply doesn't use user's display name if they joined flow after Hubot started
- Notifications not ordered correctly
- Brain data incomplete when using password authentication
- App crashes when open chats HOT 5
- Unexpected error in Flowdo ck client: Error: Received status 500
- Cannot read property 'id' of undefined HOT 1
- res.emote doesn't appear to work HOT 3
- Hubot not responding to its own name HOT 8
- Is it possible to connect hubot so I don't need to pay or an extra user? HOT 1
- Various issues resolved - re buffertools and node-gyp rebuild HOT 2
- Error on buffertools/node-gyp compile on adding hubot-flowdock to dependencies. HOT 1
- Has anyone had any luck with hubot-auth and hubot-flowdock in tandem? HOT 1
- Bot dies when it joins more than 200-ish flows HOT 2
- Windows 10 hubot: Cannot load adapter flowdock HOT 5
- Get Thread ID from New Thread HOT 4
- Running behind a corporate proxy HOT 1
- Error with nodejs version >= 7.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-flowdock.