Skip to content

Commit

Permalink
fix: serailization error when request with an invalid json input (#4714)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed May 8, 2024
1 parent f6cd48e commit 942e8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_bentoml_impl/server/app.py
Expand Up @@ -411,7 +411,7 @@ async def api_endpoint_wrapper(self, name: str, request: Request) -> Response:
log_exception(request)
data = {
"error": f"{exc.error_count()} validation error for {exc.title}",
"detail": exc.errors(include_context=False),
"detail": exc.errors(include_context=False, include_input=False),
}
resp = JSONResponse(data, status_code=400)
except BentoMLException as exc:
Expand Down

0 comments on commit 942e8c3

Please sign in to comment.