Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lookerbot setup using Slack App Bot User OAuth Token #174

Open
pbutron opened this issue Jan 31, 2020 · 1 comment
Open

Lookerbot setup using Slack App Bot User OAuth Token #174

pbutron opened this issue Jan 31, 2020 · 1 comment

Comments

@pbutron
Copy link

pbutron commented Jan 31, 2020

I have try to deploy the bot using the Oauth token given by Slack and it doesn't work ...

I am getting the following error:

/Documents/lookerbot/node_modules/botkit/lib/Slack_web_api.js:22
if (cb) cb(json.error, json);
^
Error: Could not connect to the Slack API. Ensure your Slack API key is correct. (missing_scope)

I have tried using my legacy token and it works ... but the bot uses my credentials and It anyone slack me, the bot will answer with this message:

I couldn't understand that command. You can use help to see the list of possible commands.

Any idea on how to sort it out? Thanks!

@afranzi
Copy link

afranzi commented Mar 2, 2020

The error with the Slack API key is caused by not giving the required scopes to the Looker bot. (src: app.permissions.scopes)

missing_scope - The token used is not granted the specific scope permissions required to complete this request.

Could not connect to the Slack API. Ensure your Slack API key is correct. (missing_scope)

The Looker bot needs the following scopes (src: oauth-scopes):

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

No branches or pull requests

2 participants