C3w1 | Graded App Item | Error copying Endpoint value

Hello,

I’m getting the error:
ERROR: (gcloud.run.services.describe) Cannot find service [automl-service]

on step 4 ( 4. Copy the Endpoint value to an environment variable:) of Task 5 ( Generate predictions).

The Google reviews on the lab suggest it is a common error currently… Anyone know how to resolve this?

Thank you!

This happens because the automl endpoint doesn’t exist in the same region where you are trying the use the inference API.

I just tried the lab now and noticed that the dataset was deployed in us-central1 (see the Region column for clouds).

Here’s how you need to change the command:

REGION='us-central1'
ENDPOINT=$(gcloud run services describe automl-service --platform managed --region $REGION --format 'value(status.url)')
INPUT_DATA_FILE=CLOUD1-JSON
curl -X POST -H "Content-Type: application/json" $ENDPOINT/v1 -d "@${INPUT_DATA_FILE}" | jq
1 Like

Thank you! This works :grinning: