-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running cron job #24
Comments
Quick update: I've not seen the "Invalid channel specified" error since prepending a hash to the room ID:- cron.coffee:
Happy to make a PR if you think it's an issue. |
well if you do that it will break all other adapters. |
Your plugin doesn't work for Slack then. |
But in OP you said it works sometimes but sometimes doesn't? Can you spot the difference? |
Working "sometimes" makes it a completely non-viable option for Slack. |
@skeet geez, I meant: if you can tell the difference when it works and when it doesn't, we can figure out a fix to make it always work. Blindly adding '#' makes all adapters fail (and often fails on Slack either, assuming the original code sometimes works). |
I looked at the slack adapter and these change look suspicious: |
Ok apologies, I misunderstood. I agree that looks suspicious. I'm not familiar at all with how the Slack client works though I do believe all public Slack channels should start with a hash. |
@skeet can you note the versions of node-slack-client and hubot-slack you're currently using? Apparently the issue is not released to npm yet on the node-slack-client/hubot-slack side, and I hope it gets fixed once they're shipped... |
hubot-slack: 2.2.0 I don't think I can get the version of node-slack-client as we connect to hubot via the Slack admin interface as an integration and I don't get any version information. Yeah, let's hope so. Cool, thanks for your help. |
Hm, not sure if it's relevant :) I guess you can get the version by looking at: |
Ah, version 2.2.0 doesn't have any dependencies hence why I couldn't find it! https://github.com/slackhq/hubot-slack/blob/2.2.0/package.json |
Aha, interesting. Thanks for checking :) |
I am using slack adapter. Please confirm how to use your module with slack adapter. |
skeet:, I am running the below command to invoke hubot , but then not able to figure out to create cron command like above. my usage model: -Mani |
where do I find about creating hubot rooms, getting hubot room details , getting hubot users list ? Please let me know. -mani |
@tvmanikandan I can run it locally just with:
Then:
You maybe just have to follow the specific instructions for Slack? https://github.com/slackhq/hubot-slack |
I'm getting an error after setting up a new cron job via Slack. It's set up to send messages to a public room called #development.
e.g:
The job worked fine for a few days but now I can see the following error in the logs:
Any idea how I can resolve this?
Thanks.
The text was updated successfully, but these errors were encountered: