title: (Google AutoML) Error: 3 INVALID_ARGUMENT: Unsupported payload type `row`
body: <p>I'm trying to port a Python function to javascript that runs a prediction model created on Google Cloud.</p>
  <p>Everything works perfectly, until calling the <code>.predict()</code> method as it always throws an <code>Unsupported payload type row</code> error message.</p>
  <p>The format of the payload is quite simple:</p>
  <pre><code>const data = [ { key1: value1, key2: value2, key3: value3 ... } ];
  </code></pre>
  <p>In case it helps, here's a portion of the code:</p>
  <pre><code>const {PredictionServiceClient} = require('@google-cloud/automl').v1beta1;
  
  const ai = new PredictionServiceClient({
      projectId: projectId
  });
  const payload = {
      row: {
          values: data
      }
  };
  const request = {
      name: ai.modelPath(projectId, computeRegion, modelId),
      payload: payload,
      params: {feature_importance: true}
  };
  const [result] = await ai.predict(request);
  </code></pre>
  <p>And here's the original Python code from which the js version is based on:</p>
  <pre><code>from google.cloud import aiplatform
  
  aiplatform.init(project=PROJECT_ID, location=compute_region)
  endpoint = aiplatform.Endpoint(ENDPOINT_ID)
  response = endpoint.predict(instances=data)
  </code></pre>
  <p>Please let me know if I should provide any additional information.
  Any hints will be greatly appreciated!</p>