[BUG]: Workflow errors are logged as "Unknown source: No message provided"
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 58
- フォーク
- 90
- 平均マージ
- 11時間 51分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/Perspective のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
AOSSIE-Org/Perspective#191 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
AOSSIE-Org/Perspective#190 ·
-
[BUG]: Missing input validation in URlRequest and ChatQuery causes 500 crashes and wasteful scraper execution対応中かも @agarwalpranav0711 が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AOSSIE-Org/Perspective#178 ·
-
[BUG]: chunk_rag_data crashes with ValueError when perspective is a dict, silently dropping RAG vector storage対応中かも @agarwalpranav0711 が 36 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
AOSSIE-Org/Perspective#175 ·
-
[BUG]: Scraper passes headers as query params in requests.get (User-Agent never sent)対応中かも @Th-Shivam が 50 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AOSSIE-Org/Perspective#161 · コメント 1 件 ·
AOSSIE-Org/Perspective の issue をすべて見る
似ている issue
-
[功能请求] 设置选项语言调整オープン功能请求
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
antithesishq/bombadil#473 ·
メンテナーはふだん 2 日以内に返信
-
The structured output reference promises null results for refusals that carry validation detailsオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
mattermost/mattermost-mobile#10358 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
LucasSantana-Dev/Lucky#3257 ·
メンテナーはふだん 1 日以内に返信