yuya373 / emacs-slack

slack client for emacs
1.11k stars 117 forks source link

Unable to slack-start due to timeout issues. #493

Closed justinabrahms closed 4 years ago

justinabrahms commented 4 years ago

Describe the bug I'm unable to M-x slack-start due to timeout errors when calling dnd.teamInfo, which fetches do-not-disturb statuses for up to 50 people. My slack instance has something like 30,000 people in it.

To Reproduce Steps to reproduce the behavior:

(use-package slack
  :ensure
  :commands (slack-start)
  :init
  (setq slack-buffer-emojify t) ;; if you want to enable emoji, default nil
  (setq slack-prefer-current-team t)
  :config
  (slack-register-team
   :name "my-team
   :default t
   :token "xoxs-token"
   :subscribed-channels '(my-channel1 also-this-one)
   :full-and-display-names t))

then M-x slack-start

Backtrace

[2019-12-31 20:58:07] [info] [my-team] Slack Websocket Is Ready!
[2019-12-31 20:58:07] [info] [my-team] Slack Command List Updated
Download Failed. STATUS: exit, EVENT: exited abnormally with code 125
, URL: https://emoji.slack-edge.com/T30MTJF0C/tapping/83f80b90e4ad5dc1.gif, NAME: /tmp/e1ff309b17289ccc10eb662bb72fd535.gif, OUTPUT: 
[error] request--callback: peculiar error
[2019-12-31 20:58:24] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[2019-12-31 20:58:24] [warn] [my-team] Retry Request by Error. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil, COUNT: 3
[error] request--callback: peculiar error
[2019-12-31 20:58:37] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[2019-12-31 20:58:37] [warn] [my-team] Retry Request by Error. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil, COUNT: 0
[error] request--callback: peculiar error
[2019-12-31 20:58:55] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[error] request--callback: peculiar error
[2019-12-31 20:59:08] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[2019-12-31 20:59:08] [warn] [my-team] Retry Request by Error. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil, COUNT: 1
Quit [3 times]
[error] request--callback: peculiar error
[2019-12-31 20:59:39] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[2019-12-31 20:59:39] [warn] [my-team] Retry Request by Error. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil, COUNT: 2
[error] request--callback: peculiar error
[2019-12-31 21:00:10] [error] [my-team] REQUEST FAILED. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil
[2019-12-31 21:00:10] [warn] [my-team] Retry Request by Error. URL: "https://slack.com/api/dnd.teamInfo", PARAMS: (("users" . "")), ERROR-THROWN: (error . "interrupt
"), SYMBOL-STATUS: timeout, DATA: nil, COUNT: 3
Mark set

Expected behavior I expected to be able to M-x slack-im-select for slackbot and try out the mode.

Screenshots N/A

Environment:

Additional context

Again, my slack instance has like 30k people in it.

I also tried to set this, but to no avail:

(setq slack-request-timeout 100)