Why are my jobs failing with "Error: Input request is invalid" no matter what I do ?

Mostafa Mahmoud 0 Reputation points
2023-04-28T19:43:23.5833333+00:00

So, I have been wasting nearly 10 hours on this issue, and the nearly non-existent documentation on Azure is not exactly helping.

I'm trying to create an Azure AutoML job using the Python SDK. The job is an Image classification job. I'm pointing it to a .jsonl file describing my image data. The job keeps failing with "Error: Input request is invalid".

Here are a couple of facts about this :

(1) I don't know what caused it. It wasn't there before, I have previously made a job that ran for more than 1 hour. This job timed out (because I chose a model that is too big to converge), but it had no problems whatsoever with accessing the data.

(2) The images can be viewed just fine in the Azure UI. When I click the job details and navigate to the training data asset, I can see in the "Explore" tab that the names of every image and the image itself. Azure has no problem reading my data, only the Job.

(3) The .jsonl file is generated by a script that I wrote, it's a very simple script that constructs the json describing every image and serializes it to a file.

There is no reason this should happen. It keeps happening anyway. Please help me. Thank you.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,673 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,065 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 47,761 Reputation points
    2023-04-29T00:56:54.0333333+00:00

    Hello @Mostafa Mahmoud

    The error message "Error: Input request is invalid" indicates that there is a problem with the input data you are providing to the AutoML job. Here are some things you can try to troubleshoot the issue:

    Check the format of the .jsonl file: Make sure that the file is in the correct format and that all the required fields are included. You can refer to the Azure AutoML documentation to ensure that your .jsonl file meets the requirements.

    Check the contents of the .jsonl file: Make sure that the data in the file is valid and that there are no formatting or syntax errors. You can try opening the file in a text editor or running it through a JSON validator to check for errors.

    Check the permissions on the data: Make sure that the AutoML job has the necessary permissions to access the data. You can try checking the Azure Storage account permissions and ensure that the AutoML service has been granted the appropriate level of access.

    Check the size of the input data: AutoML jobs have a limit on the amount of input data that can be processed. Make sure that the size of your input data does not exceed this limit. You can refer to the Azure AutoML documentation for more information on the limits.

    Check the Azure AutoML service status: Azure services occasionally experience outages or service disruptions that can affect the performance of your AutoML job. You can try checking the Azure service status page to see if there are any known issues that could be affecting your job.

    If none of these steps resolve the issue, you may want to try contacting Microsoft Azure support for further assistance. They can help you troubleshoot the issue and provide more specific guidance based on your particular situation.

    Please let me know if none of these works, and you have no support plan, I am happy to help you enable a free one for this issue.

    Regards, Yutong

    0 comments No comments