You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a request is failing due to a an HTTP error, a read error, or another request error (not platform error or rate-limiting error), its very hard to know this during development.
The reason is that the default retry policy allows retries for up to 30 minutes. This is useful in production, which retrying is more likely to give your app resiliency to production issues on either your side or Slack's side. However, in development this just impedes your ability to understand a failure ever occurred.
I recently faced this issue when using a custom TLS configuration. This was causing an error, but since I did not have DEBUG logging enabled, I had no idea the request was being retried.
The proposal is to change the log level of this line to warn and to add information about the error:
Description
Currently, when a request is failing due to a an HTTP error, a read error, or another request error (not platform error or rate-limiting error), its very hard to know this during development.
The reason is that the default retry policy allows retries for up to 30 minutes. This is useful in production, which retrying is more likely to give your app resiliency to production issues on either your side or Slack's side. However, in development this just impedes your ability to understand a failure ever occurred.
I recently faced this issue when using a custom TLS configuration. This was causing an error, but since I did not have DEBUG logging enabled, I had no idea the request was being retried.
The proposal is to change the log level of this line to
warn
and to add information about the error:node-slack-sdk/src/WebClient.ts
Line 712 in c640509
Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: