@Xu, Pengcheng (CN - AB) I think the request data might not be correctly formatted in this case. I do not have this setup to test but the same example with the same dataset is available to test in azureml-examples repo, Please check this notebook where the section "Test the deployment" uses the following format for request instead of the one mentioned in your request.
test_data = pd.read_csv("./data/test-mltable-folder/bank_marketing_test_data.csv")
test_data = test_data.drop("y", axis=1)
test_data_json = test_data.to_json(orient="records", indent=4)
data = (
'{ \
"input_data": {"data": '
+ test_data_json
+ "}}"
)
request_file_name = "sample-request-bankmarketing.json"
with open(request_file_name, "w") as request_file:
request_file.write(data)
ml_client.online_endpoints.invoke(
endpoint_name=online_endpoint_name,
deployment_name="bankmarketing-deploy",
request_file=request_file_name,
)
If you can use the sample file and print the request data, you can find the correct format that you can use with your deployment. Thanks!!