ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: Cannot convert to service config

24 Views Asked by At

I try to run the gcloud endpoints command and I got errors:

    gcloud endpoints services deploy \
        msh-common-proto/release/api_descriptor.pb \
        .deploy/api_config.yaml \
        --no-user-output-enabled

errors:

ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: Cannot convert to service config.
 'location: "unknown location"
kind: ERROR
message: "Unresolved type \'.google.protobuf.Timestamp\'"

 location: "unknown location"
kind: ERROR
message: "Unresolved type \'.google.protobuf.Timestamp\'"

 location: "unknown location"
kind: ERROR
message: "Unresolved type \'.google.protobuf.Timestamp\'"
...

I didn't change my code, the only thing I did is update gcloud cli tools and buf tool.

After I got these errors, I decide to update all my python Google packages but I still have the same error.

Does anyone have an idea?

My versions:

GCLOUD
Google Cloud SDK 468.0.0
alpha 2024.03.08
beta 2024.03.08
bq 2.0.101
cloud-build-local 0.5.2
core 2024.03.08
gsutil 5.27

Python 3.11.7
protobuf==4.24.4

macOS version 12.6.7
0

There are 0 best solutions below