Is there an existing issue for this?
Current behavior
When I make any API request that triggers an unhandled exception, the server crashes the response pipeline instead of returning a structured error response and I see the error message attached below:
TypeError: 'Exception' object is not a valid HTTP response
What I expect is a properly formatted JSON error response with an appropriate HTTP status code.
File: apps/api/plane/api/views/base.py, line 126
Steps to reproduce
- Make any API request that raises an unhandled server-side exception
- Observe that the response pipeline crashes instead of returning a clean error JSON
- See malformed 500 with no structured body
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Is there an existing issue for this?
Current behavior
When I make any API request that triggers an unhandled exception, the server crashes the response pipeline instead of returning a structured error response and I see the error message attached below:
TypeError: 'Exception' object is not a valid HTTP response
What I expect is a properly formatted JSON error response with an appropriate HTTP status code.
File: apps/api/plane/api/views/base.py, line 126
Steps to reproduce
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev