emacs-slack icon indicating copy to clipboard operation
emacs-slack copied to clipboard

Error on slack-start: Failed to request slack-authorize: enterprise_is_restricted

Open seanw2020 opened this issue 4 years ago • 3 comments

Describe the bug When I run slack-start, I get "Failed to request slack-authorize: enterprise_is_restricted"

To Reproduce Steps to reproduce the behavior:

  1. Follow the README.md at https://github.com/yuya373/emacs-slack
  2. I'm using doom emacs, set ~/.doom.d/config.el to
(setq slack-buffer-emojify t) ;; if you want to enable emoji, default nil
(setq slack-prefer-current-team t)
:config
(slack-register-team
 :name "Foo"
 :default t
 :token "xoxs-foo-bar"
 :subscribed-channels '(vim)
 :full-and-display-names t)
  1. Reload doom config (i.e., restart emacs): C-x doom/reload
  2. M-x slack-start
  3. See error "Failed to request slack-authorize: enterprise_is_restricted"

Backtrace

[2020-12-03 09:07:52] [trace] REQUEST FINISHED. URL: "https://slack.com/api/rtm.connect", PARAMS: (("mpim_aware" . "1") ("presence_sub" . "true")), DATA: (:ok :json-false :error "enterprise_is_restricted") - Foo

Expected behavior I expected the connection to work.

Environment:

  • OS: macOS
  • Emacs Version: 27.1
  • emacs-slack Version: not sure -- i installed it today

Additional context The Error is documented on Slack's API here: https://api.slack.com/methods/admin.apps.restrict

seanw2020 avatar Dec 03 '20 15:12 seanw2020

Same here, I get the same error message.

sauvala avatar Mar 25 '22 15:03 sauvala

+1 Does this mean it would be good to have an OAuth option for emacs-slack?

elpa has an oath2 package, so in theory may be possible to follow steps here? (in elisp): https://api.slack.com/legacy/oauth

ah, but then it requires approval from an enterprise admin on a per workspace basis.. makes sense, though probably not doable in most cases :(

jo-hpe avatar Mar 29 '22 21:03 jo-hpe

i miss having jabber

jo-hpe avatar Mar 29 '22 22:03 jo-hpe