Skip to content

Commit

Permalink
BUG: fixed model serve fail with HTTP 400 on Bad Request. Signed-off-…
Browse files Browse the repository at this point in the history
…by: Andrei Batomunkuev andreibatomunkuev@gmail.com

Signed-off-by: abatomunkuev <abatomunkuev@myseneca.ca>
  • Loading branch information
abatomunkuev committed Nov 4, 2021
1 parent b945297 commit fdb9b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlflow/pyfunc/scoring_server/__init__.py
Expand Up @@ -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):
Expand Down

0 comments on commit fdb9b38

Please sign in to comment.