-
Notifications
You must be signed in to change notification settings - Fork 225
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
Unable to authorize client #268
Comments
Same issue, the Docker container works and can connect to my Slack account, but the binary does not. My config file is located at the following per the README:
|
I experience the same issue but can get it to work if I specify the config location with the |
Update: I apparently had comments in my config file (JSON doesn't support comments and neither does the app). I got this to work:
But this still does not work: I will happily use the Docker container though. |
I wanted to test slack-term and I get this error too. First attempt with method 4 (window.promt() trick, very clever :) ), then method 2 https://github.com/erroneousboat/slack-term/wiki#method-2 . I got two different tokens, and neither of them worked :(
|
(I also ran |
First, the default config file is in When installing it via
(you can confirm as it is created automatically). You need to edit that file and add your token there. You can also add other config options as specified. When updating |
Facing the same issue when using docker and from my local. My config is set correctly,
Anyone still facing this problem? |
Yes, I did some digging around in the code, and it turns out @bagnaram in #136 is correct. The library that slack-term uses to interface with the official API is slack-go, but that (as far as I can tell) does not support this particular authentication method ( After cloning this repo, and cloning slack-go, and then forcing slack-term to use my local version of slack-go, and then modifying slack-go to shove my own personal slack-go will need a change to allow passing in and setting that particular header parameter in API requests. slack-term will need a change to add a config option for the So, in summary, it's a two-headed problem. This app doesn't supply the I'm not sure why this doesn't seem to be a bigger issue for more people. Some comments in various threads on this problem mention that it's only newer workspaces. That seems like the most likely explanation. |
I'm affected by the same issue. |
Thank you @Seanld . Would love to see a fix for this issue. In slack-go they are working on something at slack-go/slack#1092 |
I was able to bodge together a working proof of concept together by copying the chttp implementation from slackdump, which was referenced in the last comment of the above linked issue 1092 If it ends up meeting my needs, I'll try to put together a more proper implementation that takes the cookie as a config value rather than hardcoding it, though I don't really know Go so we'll see. |
I have this problem too. |
@thomas-scrace sorry for the slow reply. I have a working version here in my fork. It's still messy but you can now specify the additional token from the config value slack_xoxd_token and it's been working for me all summer. I had to do some funny stuff with dependencies to make it work that I don't really recall the details of any more, probably not all up to snuff at all, but if someone who knows how Go works wants to clean it up be my guest. |
^ ceandreasen's fork works. |
Despite making a file containing my token as
~/.config/slack-term/config/.slack-term
, I get this error:2022/01/24 18:24:59 not able to authorize client, check your connection and if your slack-token is set correctly
This is my file:
What is the issue?
Version: 0.5.0
Installation method:
sudo snap install slack-term
The text was updated successfully, but these errors were encountered: