What can I do about `Retry header did not contain a valid timeout`?
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript
- 领域
- api
调研方向
从 packages/web-api/src/WebClient.ts 中报告的 retry-header 处理位置开始,约在第 417 行,使用 5.15.0 上下文以及列出的 429 复现步骤。将观察到的缺少 timeout 与客户端现有的行为进行比较;要视为完成,需要一个明确达成一致的解释或处理变更,而此 issue 目前没有指定这些内容。
由索引模型根据 Issue 内容生成。
描述
Hey there,
I've been running into 3 occurrences of this error: Retry header did not contain a valid timeout (from here)
The client was using the outdated 5.15.0 WebApi, so it didn't tell me the url.
My main questions are
- is there a way to prevent getting rate limit responses w/o retrySec information?
- are there any ideas about what causes this?
- Is there a best practice on how to handle these?
Thanks in advance
Packages:
Select all that apply:
-
@slack/web-api -
@slack/rtm-api -
@slack/webhooks -
@slack/oauth -
@slack/socket-mode - I don't know
Reproducible in:
npm ls | grep -o "\S\+@\S\+$" | tr @ ' ' | awk -v q='"' '{print q$1q": "q"^"$2q","}' | grep slack
node --version
sw_vers && uname -v # or `ver`
The Slack SDK version
@slack/web-api: 5.15.0
Python runtime version
v15.14.0
OS info
Chrome/98.0.4758.80
Macintosh; Intel Mac OS X 10_15_7
Steps to reproduce:
(Share the commands to run, source code, and project settings)
- Send a slack message
- Receive a 429
- Miss the timeout
Expected result:
I don't know, assume a default timeoutSec?
Actual result:
(Tell what actually happened with logs, screenshots)
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
- 主要语言
- TypeScript
- 星标
- 3.4k
- 派生
- 693
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 75
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
slackapi/node-slack-sdk 的其他 Issue
-
web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statuses未关闭area:typescript enhancement pkg:web-api
难度 2/5 1-3 小时 新手友好度 72/100
slackapi/node-slack-sdk#2900 ·
维护者通常 1 天内回复
-
pkg:web-api
难度 2/5 1-3 小时 新手友好度 76/100
slackapi/node-slack-sdk#2895 ·
维护者通常 1 天内回复
-
pkg:web-api
难度 2/5 1-3 小时 新手友好度 76/100
slackapi/node-slack-sdk#2894 ·
维护者通常 1 天内回复
-
`SlackListsItem FieldMessage.message` type does not match API response shape可能已有人在做 @AjTheSpidey 于 202 天前认领。 未关闭area:typescript auto-triage-skip bug pkg:web-api
难度 2/5 1-3 小时 新手友好度 82/100
slackapi/node-slack-sdk#2598 · 2 条评论 ·
维护者通常 1 天内回复
-
Missing TypeScript response type for files.uploadV2可能已有人在做 @Yshuro 于 6 天前认领。 未关闭area:typescript auto-triage-skip bug pkg:web-api
难度 2/5 1-3 小时 新手友好度 66/100
slackapi/node-slack-sdk#2459 · 2 条评论 ·
维护者通常 1 天内回复
查看 slackapi/node-slack-sdk 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
Techiebutler/freeframe#687 ·
维护者通常 1 天内回复
-
enhancement from-app needs-triage
难度 2/5 1-3 小时 新手友好度 67/100
nightly-labs/openbot#23050 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
OHDSI/Data2Evidence#3846 ·
维护者通常 3 天内回复
-
frontend: EditorDialog: Save & Apply on an empty or comment-only document reports success and applies nothing可能已有人在做 @shubhamrai9122-creator 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
kubernetes-sigs/headlamp#9086 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
openai/openai-node#3232 ·
维护者通常 1 天内回复