From 468f39042623f68efd30525ccb577981a0711bcc Mon Sep 17 00:00:00 2001 From: abatomunkuev Date: Thu, 4 Nov 2021 03:06:07 -0400 Subject: [PATCH] BUG: fixed model serve fail with HTTP 400 on Bad Request. Signed-off-by: Andrei Batomunkuev --- mlflow/pyfunc/scoring_server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlflow/pyfunc/scoring_server/__init__.py b/mlflow/pyfunc/scoring_server/__init__.py index 185953be6f202..0a2de58354474 100644 --- a/mlflow/pyfunc/scoring_server/__init__.py +++ b/mlflow/pyfunc/scoring_server/__init__.py @@ -85,7 +85,7 @@ def infer_and_parse_json_input(json_input, schema: Schema = None): "Failed to parse input from JSON. Ensure that input is a valid JSON" " formatted string." ), - error_code=MALFORMED_REQUEST, + error_code=BAD_REQUEST, ) if isinstance(decoded_input, list):