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

slacker.Error message #59

Open
philsinatra opened this issue Feb 27, 2018 · 3 comments
Open

slacker.Error message #59

philsinatra opened this issue Feb 27, 2018 · 3 comments

Comments

@philsinatra
Copy link

Installed slack-cleaner via pip without an issue. Goal is to remove all files in the account, however when running the command I get the following feedback:

$ sudo slack-cleaner --token SECRET --file --user "*" --rate=1
Running slack-cleaner v0.3.0
Traceback (most recent call last):
  File "/usr/local/bin/slack-cleaner", line 7, in <module>
    from slack_cleaner.cli import main
  File "/Library/Python/2.7/site-packages/slack_cleaner/cli.py", line 61, in <module>
    init_user_dict()
  File "/Library/Python/2.7/site-packages/slack_cleaner/cli.py", line 52, in init_user_dict
    res = slack.users.list().body
  File "/Library/Python/2.7/site-packages/slacker/__init__.py", line 164, in list
    return self.get('users.list', params={'presence': int(presence)})
  File "/Library/Python/2.7/site-packages/slacker/__init__.py", line 90, in get
    api, **kwargs
  File "/Library/Python/2.7/site-packages/slacker/__init__.py", line 72, in _request
    raise Error(response.error)
slacker.Error: invalid_auth
@onhernandes
Copy link

+1

@sgratzl
Copy link

sgratzl commented Mar 9, 2018

how did you create the secret token?

@jtagcat
Copy link

jtagcat commented May 25, 2021

Same issue. URL https://api.slack.com/apps/<redacted>/oauth?success=1

image

image

Added both user and bot scopes as a troubleshooting step. Tried both bot and user tokens, and with, without --bot.

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