Comments (6)
Hi @somali3395, thanks for asking the question. It seems that your env variable is not loaded in hubot-slack for some reason. Perhaps, you may be using a bit old version, which does not support the option.
The best way to resolve this is to upgrade to the latest version. v4.10.0 uses rtm.connect by default, so that you don't need to pass any extra options: https://github.com/slackapi/hubot-slack/releases/tag/v4.10.0
from hubot-slack.
Hi @seratch , Thanks for your help.
I am using this documentation https://slack.dev/hubot-slack/ to create a BOT in slack. This guides me to install the following package "generator-hubot" .This is the latest versions that i updated. i am still getting the rtm.start error.
from hubot-slack.
from hubot-slack.
@somali3395 Just in case, I've confirmed the latest version works without any issues. All I did was:
- Head to https://my.slack.com/apps/A0F7XDU93-hubot and generate a new setting
npm install -g yo generator-hubot
mkdir my-awesome-hubot && cd my-awesome-hubot
yo hubot --adapter=slack
HUBOT_SLACK_TOKEN=(your token here) HUBOT_LOG_LEVEL=debug ./bin/hubot --adapter slack
As you can see, I followed the instructions here: https://slack.dev/hubot-slack/#basic-setup and it worked for me.
I am guessing that your app may still be using an older version for some reason. Please make sure the version is v4.10.0 for sure. When you start your hubot app, you can find the following line in the stdout outputs:
[(datetime here)] INFO hubot-slack adapter v4.10.0
Also, enabling debug-level logging may help you figure out the cause of your situation. You can run your app with debug-level logging by the following option. Refer to https://slack.dev/hubot-slack/advanced_usage#activate-logging-for-debugging for more details.
HUBOT_SLACK_TOKEN=(your token here) HUBOT_LOG_LEVEL=debug ./bin/hubot --adapter slack
from hubot-slack.
Hi @seratch . Thank you for your reply. I am getting this error while running yo hubot --adapter=slack. Which version of node and npm are you using?
from hubot-slack.
Hi @seratch Thank you so much for your help. It worked
from hubot-slack.
Related Issues (20)
- Get the last reply in a thread HOT 4
- @slack/client is no longer developed, and its dependency "ws" has a security vulnerability HOT 2
- Replace RTM API with Event API for hubot slack adapter HOT 5
- Change the default settings to "useRtmConnect: true"
- Hubot failing to set up with error: Response not OK: method_deprecated HOT 4
- Problem setting up slack token HOT 4
- @slack/client dependency "async" has a security vulnerability HOT 2
- Best Interior Designers in Noida
- Can not trigger listener sometimes. HOT 6
- After SlackClient#send(), I can not receive message sometimes HOT 5
- DEBUG Received file_shared message from: undefined, file_id: F03PMLTMBNE HOT 4
- How to HOT 1
- unable to get response from hubot HOT 3
- App user who is initiating action is identified as channel instead of App name HOT 5
- Port hubot-slack away from @slack/client? HOT 2
- slack bot respond only once in the thread message HOT 3
- RTMClient failed to connect HOT 15
- hubot@>4.0.0 Cannot load adapter HOT 11
- Deleted Message Event HOT 2
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-slack.