Identify Failures From Rate Limiting
还没有人认领这个 Issue。
评估
调研方向
从 channel.update_partial 调用开始,检查当 Stream 仪表板记录 429 时其响应是如何表示的。重现受到速率限制的请求,并将其与正常响应进行比较,然后验证调用方可以通过响应或异常来区分速率限制失败。
由索引模型根据 Issue 内容生成。
描述
Hi!
We have a cron job that runs every evening syncing the chat configuration for all of our users. We saw that some of these requests would fail because of 429, according to the log available in the Stream dashboard
I tried to repeatedly calling the following code to reproduce the rate limiting
response = channel.update_partial({
'name' => name,
'image' => image,
})
puts response
I was able to get the 429s to show up in the dashboard, but the responses being printed out don't seem to be any different from the normal ones. There was no exception being thrown by the SDK either, which I think would have been the better way for handling failed requests.
What's the recommended way to check if individual requests have failed because of rate limiting based on the response?
Thanks!
- 主要语言
- Ruby
- 星标
- 32
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GetStream/stream-chat-ruby 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
GetStream/stream-chat-ruby#215 ·
-
难度 4/5 3-5 天 新手友好度 35/100
GetStream/stream-chat-ruby#133 ·
-
难度 3/5 1-2 天 新手友好度 35/100
GetStream/stream-chat-ruby#132 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
GetStream/stream-chat-ruby#127 ·
-
难度 5/5 一周以上 新手友好度 28/100
GetStream/stream-chat-ruby#114 · 3 条评论 · 1 个 reaction ·
查看 GetStream/stream-chat-ruby 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
rubys/roundhouse#444 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
sclorg/s2i-ruby-container#656 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
yegor256/rubocop-elegant#92 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
ecosyste-ms/awesome#812 ·
维护者通常 2 天内回复