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
Cannot connect to Slack: "Error (code 0): ratelimited" #901
Comments
Hm. Seems to be working now. If it continues to work for the rest of the day, I'll close this. |
Are you sure you had upgraded and waited for the ratelimit to pass? This is the issue that should be fixed with the latest commit (c303a77). |
Yes, I verified that I had upgraded. I checked the code in |
Hm, weird. It takes the value of What happened before that commit is that connecting to the websocket failed, so it immediately tried connecting again by requesting rtm.connect (which gives the link to the websocket endpoint) and connecting to the websocket again. Since all connections to the websocket failed this happened indefinitely, but after a few loops it gets ratelimited and then it waits for the rate limit to try again. So if this still happened for you what to check would be to call the rtm.connect endpoint and trying to connect to the websocket and see if that fails. If it works now I don't think there's anything to do unless it starts failing again though. Here is a command to call the rtm.connect endpoint:
|
The issue seems to be back. I just received the following message:
followed by
The 120-second retry iis because I tweaked my fork of the code a bit to see if increasing the retry time would help (it didn't):
|
Yes. Working on trying the |
The format of |
I manually grabbed the token:cookie using the instructions in |
Great, let's hope it continues working now then. Have you tried the extract_token_from_browser.py script in this repo for extracting the token from your browser? |
I'm having a similar issue. This the content on the log file:
I tried to regenerate de token following the instructions, but it seems the problem persists. I tried to set |
@tonivade: Are those four lines from the same load of wee-slack? I can't really see how you could get Tokens starting with |
I generated again the token, the error
and it repeats all the time: connection lost then failed requesting |
It seems using the latest version from master fix the issue. This commit: c303a77 Thank you for your support. |
Could we consider making a release including this fix so that we can more easily get this into distribution repositories? |
@r-vdp: Yes! I'll make a new release a bit later today. |
Version 2.10.1 has now been released with the fix. It looks like the issue here is solved with this, so I'll close the issue. |
Today I cannot log into Slack through weechat/wee-slack. The following error is presented:
Two attempts are made at 60-second intervals, after which the message becomes:
and nothing else happens.
Things that I've tried but didn't help:
c303a77
("Include cookie when making the websocket connection")slack_timeout
to90000
I added the following change so I could see the value of
retry_after
:The new message indicated that
retry_after
is 60 seconds.The text was updated successfully, but these errors were encountered: