The Quickstart command in the README contains unnecessary whitespace characters, causing the command to fail.
Hiroya-W opened this issue · 1 comments
Hiroya-W commented
The Quickstart command in the README contains unnecessary whitespace characters, causing the command to fail.
INVALID_ARGUMENT
error occurs as follows with device ID
gcloud iot devices create atest-dev --region=us-central1 \
--registry=atest-registry \
--public-key path=ec_public.pem,type=es256
ERROR: (gcloud.iot.devices.create) INVALID_ARGUMENT: The format of 'device.id' is invalid:'atest-dev '
and region.
This command is executed by removing whitespace characters from the device ID.
gcloud iot devices create atest-dev --region=us-central1 \
--registry=atest-registry \
--public-key path=ec_public.pem,type=es256
ERROR: (gcloud.iot.devices.create) NOT_FOUND: The cloud region 'projects/*******' (location 'us-central1 ') isn't supported. Valid regions: {asia-east1,europe-west1,us-central1}
I am using the following environment.
gcloud --version
Google Cloud SDK 367.0.0
bq 2.0.72
core 2021.12.10
gsutil 5.5
Hiroya-W commented
I am going to submit a PR to fix this problem.