[BUG]: Workflow errors are logged as "Unknown source: No message provided"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
Direzione di ricerca
Read backend/app/modules/langgraph_builder.py and the error_handler path, then check backend/tests/test_pipeline.py and the /api/process description in backend/API.md. Reproduce the dropped error details with the supplied failing-node example. Done means the server log names the failing step and message while the API response remains unchanged; the author says a fix and tests are already prepared and plans to open a PR.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
When a step of the LangGraph workflow fails, the server log does not say which step failed or why. Every failure is logged as:
Error detected from 'Unknown source': No message provided
Each node returns {"status": "error", "error_from": ..., "message": ...} when it fails, and error_handler logs error_from and message. But MyState in backend/app/modules/langgraph_builder.py has no error_from or message keys, and LangGraph drops keys that are not in the state schema. So error_handler never sees them and falls back to its defaults.
backend/API.md says for /api/process: "The failing step and its message are written to the server log only, not to the response." The response part holds, but the log part does not. The comment in test_workflow_stops_at_the_first_failing_step (backend/tests/test_pipeline.py) also notes that these keys are dropped.
Steps to reproduce
Make any node fail, for example /api/process with a Groq call that errors, or this in the backend test setup:
from app.modules import langgraph_builder
from app.modules.langgraph_nodes import sentiment
sentiment.run_sentiment_sdk = lambda state: {
"status": "error", "error_from": "sentiment_analysis", "message": "Groq timed out"
}
langgraph_builder.build_langgraph().invoke({"cleaned_text": "Article text."})
The log shows Error detected from 'Unknown source': No message provided instead of Error detected from 'sentiment_analysis': Groq timed out.
Expected
The log names the failing step and its message, as API.md describes, and the response stays the same (no error_from or message in it).
I have a fix with tests ready and will open a PR.
- Lingua principale
- TypeScript
- Stelle
- 58
- Fork
- 90
- Merge medio
- 11h 51m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun 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 AOSSIE-Org/Perspective
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
AOSSIE-Org/Perspective#191 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
AOSSIE-Org/Perspective#190 ·
-
[BUG]: Missing input validation in URlRequest and ChatQuery causes 500 crashes and wasteful scraper executionForse già presa @agarwalpranav0711 l’ha presa 25 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/Perspective#178 ·
-
[BUG]: chunk_rag_data crashes with ValueError when perspective is a dict, silently dropping RAG vector storageForse già presa @agarwalpranav0711 l’ha presa 36 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/Perspective#175 ·
-
[BUG]: Scraper passes headers as query params in requests.get (User-Agent never sent)Forse già presa @Th-Shivam l’ha presa 50 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
AOSSIE-Org/Perspective#161 · 1 commento ·
Tutte le issue di AOSSIE-Org/Perspective
Issue simili
-
documentation lens:human needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
thebristolsound/birdbrain#2246 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
A voting window past about 69.9 million hours stores a deadline that reads back as no deadlineApertabug ready-for-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BoardGamesEmpire/board-games-empire-backend#1452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue stretch
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno