dispatch() Returns Exception Object Instead of HTTP Response in App BaseViewSet
Open
@vihar is already working on this.
Since May 28, 2026.
🐛bug
plane
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When I trigger any unhandled exception in a ViewSet endpoint, the WSGI server receives a raw Python exception object instead of an HTTP Response and I see the error message attached below:
AssertionError: .accepted_renderer not set on Response
What I expect is a properly formatted JSON error response. This bug appears in two separate dispatch() methods in the same file.
File: apps/api/plane/app/views/base.py, lines 123 and 218
Steps to reproduce
- Trigger any unhandled exception in a ViewSet endpoint (e.g. a KeyError in a POST handler)
- Observe the server crashes the response pipeline instead of returning a 500 JSON
- See error
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.