Introduce custom error types
@const-cloudinary 已經在處理了。
開始於 2021年2月9日。
評估
這個 Issue 還沒有評估資料。
描述
Explain your use case
All the errors from SDK now returns in raw format.
Moreover - they are bubbling up from the very bottom level to the client level.
Describe the problem you’re trying to solve
This errors might be everything - starting from the HTTP errors (can't connect to the server, wrong credentials, smth else) to JSON umarshaling problems.
Does the client really need such verbose level of errors and does he (she) really need to know that we've got some problem during JSON unmarshaling?
Do you have a proposed solution?
- Catch errors before returning to clients
- Introduce some types of errors (internal error, server error, auth error ...)(
- Introduce some interfaces that would help to separate errors by behavior (fatal, retryable, limit exceed) - here is a good article about it https://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully
- 主要語言
- Go
- 星號
- 51
- 分支
- 25
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudinary/cloudinary-go 的其他 Issue
-
Base64file uploading to cloudinary is not working可能重新可做 @AnshShah77 於 1135 天前認領,目前沒有進行中的 PR。 未關閉
難度 3/5 1-2 天 新手友好度 30/100
cloudinary/cloudinary-go#82 · 2 則留言 ·
查看 cloudinary/cloudinary-go 的全部 Issue
相似的 Issue
-
needs-triage typo
難度 1/5 1 小時以內 新手友好度 88/100
llm-d-incubation/llm-d-scaling-manager#122 ·
維護者通常 1 天內回覆
-
good first issue severity: low tech-debt
難度 2/5 半天 新手友好度 75/100
TMHSDigital/subenum#329 ·
維護者通常 1 天內回覆
-
[Bug] Backend summarize min() / max() panics when a field has no numeric values可能已有人在做 @weng5e 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 64/100
grafana/grafana-infinity-datasource#1832 ·
維護者通常 1 天內回覆
-
tech-debt
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
GillMacedo/godebugdiff#13 ·