tsterbak/pydataberlin-2022

"Unrecognized content type parameters" when querying mlflow 2.12.1

Opened this issue · 0 comments

Hi! Not sure you accept issues for this, but I've installed mlflow 2.12.1 and when running the notebook 2_Deploy and manage.ipynb trying to query the self-hosted model I'm getting this error below. I've tried removing the format=pandas-records in the content-type like mentioned here, but that didn't help. Mayb you can comment and update the code, too? Thanks in advance!

"Unrecognized content type parameters: format. IMPORTANT: The MLflow Model scoring protocol has changed in MLflow version 2.0. If you are seeing this error, you are likely using an outdated scoring request format. To resolve the error, either update your request format or adjust your MLflow Model's requirements file to specify an older version of MLflow (for example, change the 'mlflow' requirement specifier to 'mlflow==1.30.0'). If you are making a request using the MLflow client (e.g. via mlflow.pyfunc.spark_udf()), upgrade your MLflow client to a version >= 2.0 in order to use the new request format. For more information about the updated MLflow Model scoring protocol in MLflow 2.0, see https://mlflow.org/docs/latest/models.html#deploy-mlflow-models."