Error message contains inner error details.
@xuzhg is already working on this.
Since Feb 8, 2022.
Assessment
This issue has not been assessed yet.
Description
Hi team,
I have a simple Odata powered api with a simple endpoint:
- http://localhost:1059/api/students
when calling the endpoint with an invalid filter query (the enum param new is an invalid status value):
http://localhost:1059/ai/students?$filter= status eq 'new'
we receive a BadRequest with an adequate message:
"The query specified in the URI is not valid. The string 'new' is not a valid enumeration type constant."
all the above is great, except for one issue, the error response body contains an innererror field containing the details of the exception.
i will provide an example response in the first comment
Is there a way to hide this field from the response? as a customer shouldn't see it
Thanks.
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from OData/AspNetCoreOData
-
.NET 10 support Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
OData/AspNetCoreOData#1610 · 2 comments · 5 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
OData/AspNetCoreOData#1609 · 2 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
OData/AspNetCoreOData#1584 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
OData/AspNetCoreOData#1572 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
OData/AspNetCoreOData#1569 · 2 comments ·
All issues in OData/AspNetCoreOData
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100