Introduce custom error types
@const-cloudinary ci sta già lavorando.
Dal 9/2/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Go
- Stelle
- 51
- Fork
- 25
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudinary/cloudinary-go
-
Base64file uploading to cloudinary is not workingForse di nuovo libera @AnshShah77 l’ha presa 1135 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
cloudinary/cloudinary-go#82 · 2 commenti ·
Tutte le issue di cloudinary/cloudinary-go
Issue simili
-
good first issue severity: low tech-debt
Difficoltà 2/5 Mezza giornata Idoneità per principianti 75/100
TMHSDigital/subenum#329 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
GillMacedo/godebugdiff#13 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GillMacedo/racesift#14 ·
-
IsTextFile reads the whole file into memory (OOM on large files in the file watcher)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
gtsteffaniak/filebrowser#3395 ·
I maintainer di solito rispondono entro 1 giorno
-
effort:s impact:low raised-by:worker risk:low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
medici-finance/assay#6496 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno