You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Workflow errors are logged as "Unknown source: No message provided" #187
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:
Activity
itsnjstyle27 commentedon Nov 5, 2026
The fix with tests is on this branch: main...itsnjstyle27:Perspective:fix/keep-error-details-in-workflow-state
GitHub does not let me open a second pull request here while #182 is open, so I will open it as soon as #182 is merged or closed.
gitcordapp commentedon Nov 5, 2026
Link your account with Gitcord
Thanks for opening this issue, @itsnjstyle27!
To receive Discord notifications and contributor tracking for this organization:
/link itsnjstyle27/verify-link itsnjstyle27)Once linked, Gitcord can notify you about assignments, mentions, and more.
— Posted by Gitcord