Replies: 1 comment
-
This is mainly the server log. If you want to return a JSON response to the client they it is probably better to return a JSONResponse, or a pydantic model for error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using
bentoml.exceptions
such asUnprocessableEntity
in the following way when an error occurs in theservice.api
:However, I noticed that the error message appears in the following format:
I believe that exposing the serving framework in the error message is unnecessary, and I would like to remove the prefix such as
BentoService error handling API request
. I only want the JSON-formatted message to be returned to the client.I have tried various approaches mentioned in the BentoML exceptions documentation but have not found a way to achieve this. It seems like it might be due to the way it's implemented in the following code.
Could you please advise if there is a way to resolve this issue?
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions