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
fix(http): redact internal exceptions in HTTP error responses #398
Serverless and Endpoint error responses expose internal exception text.
An injected error containing /private/example reaches the HTTP body on main at a91e6b4a.
Endpoint also treats a plugin's internal ValueError as a routing failure and returns 404.
Required behavior:
Return Internal Server Error for SDK-generated 500 responses and log the original exception with its traceback.
Limit Endpoint's 404 handling to route dispatch; plugin construction and invocation failures, including ValueError, return 500.
Use a generic Not Found body for route failures and preserve explicitly returned plugin responses.
In the daemon, redact the shared internal-error response and interrupt failed Endpoint streams without appending exception text, including across nodes.
Test that injected internal details appear in logs but not in HTTP responses, and document the error-body, status, and stream-failure changes.
Complete joint acceptance with the selected deployed components, including errors before/after headers and forwarding across daemon nodes.
Target product release: Dify 1.19.0.
Keep this issue open until the remaining acceptance is recorded; merged component PRs do not establish deployment acceptance.
Daemon items retain their current milestone assignments.
changed the title [-]fix(serverless): redact internal exceptions in HTTP error responses[/-][+]fix(http): redact internal exceptions in HTTP error responses[/+]on Oct 14, 2026
Activity
[-]fix(serverless): redact internal exceptions in HTTP error responses[/-][+]fix(http): redact internal exceptions in HTTP error responses[/+]fix(http)!: redact errors and abort failed endpoint streams (#835)