intility / intility/json-api-toolkit
Narrow catch-all in TryApplyDatabaseProjectionAsync
Open
@erlendellefsen is already working on this.
Since Aug 20, 2026.
.NET
bug
- Dominant language
- C#
- Stars
- 7
- Forks
- 0
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 23
Description
JsonApiToolkit/Controllers/JsonApiController.cs:577 catches Exception and falls back to a full entity load. That swallows cancellation, OOM, and DB timeouts as benign warnings.
Acceptance criteria
-
catchuses awhenfilter limited to the expected reflection / EF expression-build exceptions (mirrorFilteredIncludeBuilder.cs:187andQueryHelpers.cs:137) -
OperationCanceledExceptionis not caught - Test: cancelling a request during projection cancels rather than falling back
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.