No response from Hubot
I successfully deployed Hubot to Heroku and from the logs it seems fine but I get no response when I ping Hubot @hubot: help although the message arrives on Hubots side:
$ heroku logs
...
2014-02-21T15:41:07.797660+00:00 app[web.1]: Incoming message received
Do you have any idea how I can debug this further?
+1 same problem here
Have you confirmed that "@hubot" is the appropriate way to get Hubot's attention? For example, we have configured it so we can type "!" as the prefix on a statement. Ex: "!img Winter Olympics"
I have "slackbot" configured as the name for the Hubot. So I expect "@slackbot" will get Hubot's attention. No?
ah! it's just slackbot: help, without @
For whatever it's worth, "@[hubot's name]" works just fine.
I'm not sure if naming it the same as slackbot has any impact.
Never mind it works. I thought my bot is named hubot but in fact it is called slackbot.
I'm seeing the same issue. All my config vars are set, my Heroku server receives the webhook and prints "Incoming message received", but no response is provided to Slack that I am aware of.
Config:
HEROKU_URL: http://<my app name>.herokuapp.com
HUBOT_SLACK_BOTNAME: slackbot
HUBOT_SLACK_LINK_NAMES: 1
HUBOT_SLACK_TEAM: <my team name>
HUBOT_SLACK_TOKEN: <slack provided token>
REDISTOGO_URL: <my redis url>
Procfile:
web: bin/hubot --adapter slack
Logs:
2014-03-05T14:50:43.185966+00:00 heroku[web.1]: Starting process with command `bin/hubot --adapter slack`
2014-03-05T14:50:44.948559+00:00 app[web.1]: team: '<my team>',
2014-03-05T14:50:44.948559+00:00 app[web.1]: name: 'slackbot',
2014-03-05T14:50:44.948559+00:00 app[web.1]: mode: 'blacklist',
2014-03-05T14:50:44.948559+00:00 app[web.1]: Slack adapter options: { token: '<my token>',
2014-03-05T14:50:44.948559+00:00 app[web.1]: channels: [],
2014-03-05T14:50:44.949373+00:00 app[web.1]: Successfully 'connected' as slackbot
2014-03-05T14:50:44.948559+00:00 app[web.1]: link_names: '1' }
Same thing,
2014-03-08T11:20:07.988965+00:00 app[web.1]: Incoming message received
2014-03-08T11:20:19.621164+00:00 heroku[router]: at=info method=POST path=/hubot/slack-webhook host=hidden-eyrie-5462.herokuapp.com request_id=80ea5890-7f0f-46ca-9813-bcfa75d34836 fwd="54.227.128.195" dyno=web.1 connect=2ms service=5ms status=200 bytes=135
2014-03-08T11:20:19.620222+00:00 app[web.1]: Incoming message received
And nothing, without reply. Name is correct, because he is getting message.
What is the message you're sending? What Hubot scripts do you have running? Hubot doesn't just reply to every message (well, it could if you wanted...) so it would be helpful to get some more details.
we're having a similar issue. the bot gets messages, but sends no replies. even to scripts we know were working in the past. simple ones like:
robot.respond /time$/i, (msg) ->
msg.send "Server time is: #{new Date()}"
I'm having the same issue - I can see "incoming message received" when I run hubot: help in slack, but there's no response in slack. Is there an easy way to debug this?
I'm having the same issue!
Pretty confident I've done everything right, and I'm seeing Incoming message received messages in Heroku, but Hubot never responds to any messages no matter how he's addressed. I've tried hubot help, slackbot help etc.
Seeing the same issue here. Fresh install of Hubot (2.7.5)
$ ./bin/hubot --name slackbot
slackbot> slackbot help
slackbot> Events:
debug - {user: <user object to send message to>}
slackbot <user> doesn't have <role> role - Removes a role from a user
slackbot <user> has <role> role - Assigns a role to a user
slackbot <user> is a badass guitarist - assign a role to a user
slackbot <user> is not a badass guitarist - remove a role from a user
...
But with --adapter slack
$ ./bin/hubot --adapter slack --name slackbot
Slack adapter options: { token: 'XXXXX',
team: 'XXX',
name: 'slackbot',
mode: 'blacklist',
channels: [],
link_names: 0 }
Successfully 'connected' as slackbot
Incoming message received
Incoming message received
Incoming message received
The three 'incoming message received' were me trying out slackbot help, slackbot: help and @slackbot help
:+1:
+1
Is it safe to assume you're all running this on some server is publicly accessible from a URL that you've configured with Slack?
i deployed on heroku and set the url to slackbot, i've the same symptoms than ppl above, logs shows that it got my message, but it doensn't respond.
Do the logs show that it's trying to send a message?
no, and things are getting worse as i try to solve the problem :
2014-06-16T20:02:05.278358+00:00 app[web.1]: Successfully 'connected' as slackbot
2014-06-16T20:02:05.770450+00:00 heroku[web.1]: State changed from starting to up
2014-06-16T20:02:05.657129+00:00 app[web.1]: [Mon Jun 16 2014 20:02:05 GMT+0000 (UTC)] INFO Data for brain retrieved from Redis
2014-06-16T20:02:05.651878+00:00 app[web.1]: [Mon Jun 16 2014 20:02:05 GMT+0000 (UTC)] INFO Successfully authenticated to Redis
2014-06-16T20:02:02.859678+00:00 heroku[web.1]: Starting process with command bin/hubot --adapter slack --name slackbot
2014-06-16T20:02:04.392962+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2014-06-16T20:02:06.857923+00:00 heroku[web.1]: Process exited with status 0
I don't know much about the specifics of Heroku, but from reading those logs it looks like something is explicitly choosing to kill the process. The line "Stopping all processes with SIGTERM" sounds like something is deciding to terminate the hubot process, which then exits successfully.