-
Notifications
You must be signed in to change notification settings - Fork 662
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
make webclient rate-limit retries configurable #451
Comments
It seems |
thanks for point that out @gunar. you're right, and the docs don't specify whether the retry configuration should apply for rate-limited requests. the key information is buried in the code comments: node-slack-sdk/lib/clients/transports/call-transport.js Lines 141 to 145 in 1dfe3ea
@rodrigo4244 can i take this issue to mean that you have a feature request for turning rate-limit handling off in the WebClient? |
retryConfig
is not working properlyretryConfig
is not working properly
Thanks @aoberoi! I already edited the |
@rodrigo4244 lets try to define what "working properly" might mean for you. do you simply want an on/off switch so you can say "do not retry any rate-limited requests"? or do you want the existing |
@aoberoi I want |
same here |
thanks for the feedback @rodrigo4244 and @gunar! i'm happy to work on getting this feature into master on a v4 version of this package. if you'd rather see it landed on v3, please let me know so we can make another issue to track that separately. |
retryConfig
is not working properly
@aerobi whatever is fastest. Thank you!! |
Hey folks, I've refactored the code where retries occur in a substantial way for #596. This has opened the door for me to build a new option to address this need too. I'd like to confirm with you all whether you'd be satisfied by what I'm planning on adding. proposal: a new Edit: Changed interface from |
Description
I read issue #305 that explained that giving a
retryConfig
object forWebClient
it would be possible to disable the retry operation but it actually isn't (I explain properly on steps to reproduce).On your docs is: https://slackapi.github.io/node-slack-sdk/web_api#changing-the-retry-configuration.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
@slack/client
version: 3.15.0node version: 8.9.3
OS version(s): Ubuntu 16.04 LTS
Steps to reproduce:
Rate limited
errors. (make sure you're using a token from a workspace which have a good amount of channels, otherwise it could take long)Expected result:
I expected that
@slack/client
would throw an error so I can throttle API calls myself.Actual result:
@slack/client
is automatically retrying.Attachments:
The text was updated successfully, but these errors were encountered: