sebseager/slack-exporter

Invalid auth

Closed this issue · 3 comments

Stvad commented

Hi! I'm trying to use this. I've set the token (tried both .env and the env variable directly), but I'm getting the following error:

> python3 exporter.py --lu
I encountered an error: {'ok': False, 'error': 'invalid_auth'}

Hi! I'm trying to use this. I've set the token (tried both .env and the env variable directly), but I'm getting the following error:

> python3 exporter.py --lu
I encountered an error: {'ok': False, 'error': 'invalid_auth'}

same

Looks like the Slack API has changed, and OAuth2.0 tokens now need to be passed in the request header, not via the token param. Slack docs aren't very helpful, but this should be an easy fix.

This should be fixed as of a67bed9. Please open another issue if you run into any other problems. Thanks!