Skip to content
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

Hubot failing to set up with error: Response not OK: method_deprecated #636

Closed
4 of 9 tasks
dwardu89 opened this issue Dec 9, 2021 · 4 comments
Closed
4 of 9 tasks

Comments

@dwardu89
Copy link

dwardu89 commented Dec 9, 2021

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

hubot-slack version: 4.9.0

node version: 14

OS version(s): centos 7 (Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type)

Steps to reproduce:

  1. Create a slack bot following the instructions found on https://slack.dev/hubot-slack/ (including NOT upgrading permissions)
  2. HUBOT_SLACK_TOKEN=xoxb-XXXXXX ./bin/hubot --adapter slack

Expected result:

slack bot expected to be set up

Actual result:

warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
error: Response not OK:  method_deprecated
info: Unable to rtm.start, attempting reconnect
warn: Reconnecting, on attempt 1
error: Response not OK:  method_deprecated
info: Unable to rtm.start, attempting reconnect
warn: Reconnecting, on attempt 2
error: Response not OK:  method_deprecated
info: Unable to rtm.start, attempting reconnect
warn: Reconnecting, on attempt 3
error: Response not OK:  method_deprecated
info: Unable to rtm.start, attempting reconnect

Attachments:

N/A

@dwardu89 dwardu89 closed this as completed Dec 9, 2021
@danhigham
Copy link

@dwardu89 Hi Edward, I'm seeing this also, and I noticed you closed this issue without a resolution, did you figure it out?

@rayisbadat
Copy link

@dwardu89 Hi Edward, I'm seeing this also, and I noticed you closed this issue without a resolution, did you figure it out?

I also ran into this today on my first try following the guide for the first time, so if anyone figured it out id be appreciated.

@seratch
Copy link
Member

seratch commented Dec 14, 2021

Hi @danhigham @rayisbadat

The rtm.start API method, which is the default way that this library uses, is now deprecated for newly created apps.
https://api.slack.com/changelog/2021-10-rtm-start-to-stop

We are going to change the default behavior of this library: #632 but until a new version release, please set the following env variable when starting your Hubot app:

export HUBOT_SLACK_RTM_CLIENT_OPTS='{"useRtmConnect": "true"}'

@danhigham
Copy link

@seratch Excellent! Thank so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants