8 Commits
Author SHA1 Message Date
Chenglong Wang d210a3f46f cleaning up 2026-06-12 00:40:15 -07:00
y-agent-ai aa6ae38342 fix(security): enhance log desensitization functionality to support sensitive query parameters
refactor(frontend): extract rule pre-content processing logic into independent module

docs: update documentation for error handling and log desensitization

test: add unit tests for log desensitization and rule pre-content
2026-05-01 18:39:56 +08:00
zhb-ai 1630543018 feat(error-handling): enhance connector error classification and response structure
- Refactored the error handling in the data connector to classify and raise errors using a shared classifier, improving maintainability.
- Updated the `classify_and_raise_connector_error` function to include operation context for better logging and error tracking.
- Introduced structured error responses for connection failures, including detailed error codes and messages.
- Enhanced API error responses to include a request ID for better traceability in error handling.
- Updated frontend components to handle new error structures and display relevant messages to users.
- Added tests to ensure proper error classification and response handling across various scenarios.
2026-04-30 19:30:15 +08:00
zhb-ai 59d09e1cf8 feat(error-handling): standardize API error responses and improve error handling
- Updated error handling across various components to ensure all application-controlled errors return HTTP 200 with a structured error format.
- Introduced a unified protocol for both non-streaming and streaming APIs, specifying response formats for success and error scenarios.
- Removed legacy response formats and unnecessary fields, such as `token`, from error responses.
- Enhanced documentation to reflect the new error handling strategy and response structures.
- Added new error codes and improved handling for specific error scenarios, including storage full conditions.
2026-04-30 18:10:18 +08:00
y-agent-ai 4455d3d33b WIP: archive incomplete phase work 2026-04-30 15:34:00 +08:00
y-agent-ai 5fe5754fca fix: Unify error handling protocol, all application errors return HTTP 200 status code
Adjust the backend error handling protocol to uniformly return HTTP 200 status code for all application control errors, with error information identified through the status field in the response body. Modified error handlers, route handling logic, and related test cases to ensure the frontend can correctly handle error responses.

- Modify error_handler.py global error handler to always return HTTP 200
- Update all route handling logic, remove explicit HTTP error status codes
- Adjust test cases to verify the new error handling protocol
- Update frontend apiClient.ts to handle error responses for streaming requests
- Improve related documentation explaining the new error handling specifications
2026-04-25 01:29:30 +08:00
y-agent-ai 7d1e9a6c90 feat: Implement automatic file upload conversion to parquet format and support multi-sheet Excel parsing
- refactor(workspace) : Refactor file upload logic, unify conversion to parquet storage
- feat(tables) : Add multi-sheet Excel file parsing support, support Chinese and English sheet name matching
- feat(error_handler) : Add streaming warning handling mechanism to improve error feedback experience
- test : Add integration tests for file upload conversion and sheet parsing
- fix : Fix cleanup logic for replace_source after parquet conversion
2026-04-24 02:15:31 +08:00
y-agent-ai a2da2f3bcf feat: Add Unified Error Handling System
- Add unified error handling protocol for frontend and backend
- Add error code mapping and internationalization (i18n) support
- Implement global error handlers and frontend error handling utilities
- Update existing code to use the new error handling approach
- Add error handling related test cases
- Improve error handling documentation and specifications
2026-04-24 01:23:12 +08:00