Baseflow / Baseflow/flutter_cache_manager

Provide response body for status code 400

Aperta
#464 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
809
Fork
510
Merge medio
6m
PR unite (30g)
1

Descrizione

## 🚀 Feature Requests

Fetch and provide response body for certain error status codes.

### 🎤 Pitch

Many APIs provide further information in the response on bad client requests (status code 400)
This allows to forward that information to the user in order to explain what he did wrong.

Sadly, since flutter_cache_manager handles all errors equally by discarding the response contents, that information is lost, only allowing us to show a generic "invalid request" message.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

No files or tests are named. Start by tracing how flutter_cache_manager handles HTTP errors and discards response contents; verify the behavior with a 400 response that contains a body, and consider the work done when callers can access that information instead of only a generic error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.