bug: user-facing error discards the provider's reason, only shows "Provider returned error"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia dal percorso di gestione degli errori del task di chat descritto nell’issue e segui come la risposta del provider diventa l’errore del messaggio e il testo del fumetto della UI. Verifica la gestione di error.metadata.raw e del generico error.message. Il lavoro è completato quando l’errore mostrato all’utente include il motivo utilizzabile del provider quando presente, senza intervenire sul comportamento di auto-retry.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When an upstream provider fails, OpenRouter returns a structured error with the real reason in error.metadata.raw. Example from a live failure:
{"error":{"message":"Provider returned error","code":429,"metadata":{"raw":"z-ai/glm-5.3-flash is temporarily rate-limited upstream. Please retry shortly, or add your own key to accumulate your rate limits: ...","provider_name":"BaseTen","limit_source":"upstream_provider_shared_pool","remedy_hint":"Retry shortly, add your own provider key, or route to another provider"}}}
The chat task's error handling reads only error.message and stores that as the message error. So the chat shows:
Error: Provider returned error
That string carries zero actionable information: no rate limit, no provider name, no retry hint. The user cannot tell a transient 429 (retry in a minute) from a dead API key (needs settings) from a model outage (switch model). The full reason was in the response body and got dropped on the floor.
Suggested change: when building the error message, prefer error.metadata.raw over error.message when the message is the generic "Provider returned error" (or more generally, include the raw reason whenever metadata is present). Same for the error the user sees in the UI bubble.
Related: #188 asks for auto-retry on 429, which is a separate ask; this issue is only about surfacing the actual reason when the error is shown. #178 was an earlier report where the error stayed invisible.
- Lingua principale
- Python
- Stelle
- 570
- Fork
- 79
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 open-webui/computer
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
open-webui/computer#286 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
open-webui/computer#276 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
open-webui/computer#271 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
open-webui/computer#269 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
open-webui/computer#250 · 1 commento ·
Tutte le issue di open-webui/computer
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·