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

"Got an error on GET to https://api.slack.com/api/auth.test: invalid_auth" #10

Open
kormat opened this issue Jun 30, 2021 · 0 comments
Open

Comments

@kormat
Copy link

kormat commented Jun 30, 2021

For the past few days, when i try to use emojifs, it fails with invalid_auth. Here's what a run looks like:

$ emojifs -vv
[I 210630 14:22:04 __main__:135] 🔑 trying Slack login cookie scrape... 🥠
[D 210630 14:22:05 slack:383] 👀 Found 1 tokens from https://A.slack.com
[D 210630 14:22:05 slack:383] 👀 Found 1 tokens from https://B.slack.com
[D 210630 14:22:06 slack:383] 👀 Found 1 tokens from https://C.slack.com
[D 210630 14:22:06 slack:383] 👀 Found 1 tokens from https://D.slack.com
[D 210630 14:22:07 slack:383] 👀 Found 1 tokens from https://E.slack.com
[D 210630 14:22:07 slack:105] resp for GET to https://api.slack.com/api/auth.test json: {'ok': False, 'error': 'invalid_auth'}
[E 210630 14:22:07 slack:107] Got an error on GET to https://api.slack.com/api/auth.test: invalid_auth
Traceback (most recent call last):
  File "/home/kormat/.local/bin/emojifs", line 8, in <module>
    sys.exit(main())
  File "/home/kormat/.local/lib/python3.8/site-packages/emojifs/__main__.py", line 138, in main
    _add_slack_from_token(t)
  File "/home/kormat/.local/lib/python3.8/site-packages/emojifs/__main__.py", line 125, in _add_slack_from_token
    s = Slack(token=t)
  File "/home/kormat/.local/lib/python3.8/site-packages/emojifs/slack.py", line 70, in __init__
    r = self._request('GET', self._url('auth.test'))
  File "/home/kormat/.local/lib/python3.8/site-packages/emojifs/slack.py", line 108, in _request
    assert(j['ok'])
AssertionError
$ 

It was working fine last week.

$ emojifs --version
emojifs 0.2.0
$ python3 --version
Python 3.8.5

I have another user who is encountering the same issue.

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

1 participant