HttpResponseError when invoking online endpoint

Davide Riva 20 Reputation points
2024-02-20T08:15:23.8433333+00:00

Dear all, I am trying to score a model created in Azure ML and deployed on an online endpoint. The tutorial says the request should be submitted as in the following code snippet. However, this produces an HttpResponseError with message "A value is not provided for the 'Inputs' parameter". I found nothing about this issue online, so does anybody know how to solve it?

ml_client.online_endpoints.invoke(
    endpoint_name = online_endpoint_name,
    deployment_name = "example",
    request_file = "data_test.json"
)
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,192 questions
0 comments No comments
{count} votes

Accepted answer
  1. dupammi 8,540 Reputation points Microsoft External Staff
    2024-02-20T10:21:37.85+00:00

    Hi @Davide Riva

    Thank you for using the Microsoft Q&A forum.

    To resolve the "HttpResponseError" with message "A value is not provided for the 'Inputs' parameter" when invoking an online endpoint in Azure ML, I suggest you Check if the input parameters are correctly specified in the data_test.json file. Ensure that the request_file parameter is pointing to the correct file location. If possible, try giving full path to the file. Verify that the online endpoint is running and deployed correctly.

    If the problem still persists, I suggest you test the online endpoint from the Azure Machine Learning studio portal or POSTMAN portal, to verify if the endpoint is running correctly. Please also check the error logs from the portal, once the endpoint was hit in the portal with the required JSON, parametric values.

    I tried to repro the error you were receiving by removing one required parameter from my online endpoint JSON and received below error:
    User's image By passing the required number of parameter values, I was able to successfully get the response from the online endpoint. Please see below
    User's image

    I hope you understand. Thank you.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.