Skip to content

Improve error handling resilience across extractors and parsers - #39945

Open
DhanushPillay wants to merge 5 commits into
langgenius:mainfrom
DhanushPillay:error-handling-improvements
Open

Improve error handling resilience across extractors and parsers#39945
DhanushPillay wants to merge 5 commits into
langgenius:mainfrom
DhanushPillay:error-handling-improvements

Conversation

@DhanushPillay

Copy link
Copy Markdown

Fixes #39944

This PR addresses four independent error handling oversights in the core API to improve backend resilience and observability:

  1. Adds a max_pages = 1000 limit to the Notion extractor to prevent infinite pagination loops.
  2. Clarifies the logging for output moderation so the fail-open behavior is explicitly stated.
  3. Replaces a dangerous bare except: in the CoT parser with (json.JSONDecodeError, ValueError) to prevent swallowing system signals.
  4. Adds a warning log when tool provider credential parsing silently falls back to an empty dictionary.

…he internal proxy to prevent local network scanning
Added a max page limit to Notion extractor to prevent infinite pagination loops.
Improved the output moderation log to clarify that content passes through when the service fails.
Replaced a bare except in the CoT parser with specific exceptions to prevent swallowing system signals.
Added a warning log for tool provider credential parsing failures to aid debugging.
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve error handling resilience across extractors and parsers

1 participant