yuya373 / emacs-slack

slack client for emacs
1.11k stars 117 forks source link

Configuring a team gives error `:token is required` #568

Closed greened closed 2 years ago

greened commented 2 years ago

Configuring a team results in :token is required. The really strange thing is this code worked the first time I started emacs-slack but has since produced this error. An Emacs restart did not help.

Error (use-package): slack/:config: :token is required Disable showing Disable logging

The key line in the team config is:

:token (auth-source-pass-get 'secret "<my-pass-secret-name>")

:token is right there in the config so I don't know what emacs-slack is complaining about. I can even see the GPG decrytion in *Messages*:

Decrypting <homedir>/.password-store/<my-pass-secret-name>.gpg...done

The code to register the team:

(slack-register-team
   :name "<team-name>"
   :default t
   :token (auth-source-pass-get 'secret "<my-pass-secret-name>")
   :cookie (auth-source-pass-get 'secret "<my-pass-secret-name>^cookie")
   :subscribed-channels '(<many-channels>)
   :slack-completing-read-function #'ivy-completing-read
   :slack-buffer-function #'switch-to-buffer
   :slack-prefer-current-team t
   :slack-display-team-name nil
   :full-and-display-names t)
greened commented 2 years ago

False alarm, this was a GPG issue. Sorry for the noise.