CloudinaryException is too vague
还没有人认领这个 Issue。
评估
调研方向
定位 CloudinaryException 以及当前生成诸如 "Resource not found" 和 "Error in loading." 等消息的 HTTP 响应处理逻辑。跟踪 400–499 响应是如何分类的,然后定义异常层次结构,并验证相关的客户端错误是否可以分别捕获。该 issue 没有提及具体文件或测试,因此应首先确定现有的异常和 HTTP 客户端测试覆盖范围。
由索引模型根据 Issue 内容生成。
描述
We've seen messages like Resource not found and Error in loading, which we'd like to handle as generic HTTP client errors (400-499). Unfortunately, we have to rescue the CloudinaryException, check its error message, and then determine what should be done.
I would propose having more than one exception class to make it possible for us to rescue something like Cloudinary::HttpClientError to ignore errors like HTTP 403 (Forbidden), 404 (Not Found), 408 (Request Timeout), etc.
One way to do this would be to add class Cloudinary::HttpClientError < CloudinaryException; end and then use that error for the cases that represent HTTP 400-499.
- 主要语言
- Ruby
- 星标
- 420
- 派生
- 282
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudinary/cloudinary_gem 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
cloudinary/cloudinary_gem#597 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 52/100
cloudinary/cloudinary_gem#591 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
cloudinary/cloudinary_gem#582 · 1 条评论 ·
-
404's when fetching .eml files (from Action Mailbox)可能重新可做 @rnamba-cloudinary 于 400 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
cloudinary/cloudinary_gem#581 · 1 条评论 ·
-
BlobKey, MirrorService and Sidekiq 8 are incompatible可能重新可做 @const-cloudinary 于 541 天前认领,目前没有进行中的 PR。 未关闭
cloudinary/cloudinary_gem#573 · 3 条评论 · 已指派 1 人 ·
查看 cloudinary/cloudinary_gem 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
area: ci benchmark build developer-experience difficulty: easy dx enhancement github-actions good first issue hacktoberfest help wanted performance quality rank: 8 kyu ruby tech: ruby
难度 1/5 1 小时以内 新手友好度 82/100
flisk-sh/flisk-labs#22 ·
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
难度 1/5 1 小时以内 新手友好度 68/100
Huerte/algo-solutions-python#260 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复