Google cloud platform 使用Cloudrun for Endpoints\u SERVICE\u NAME环境变量接收Google Cloud Endpoints的错误

Google cloud platform 使用Cloudrun for Endpoints\u SERVICE\u NAME环境变量接收Google Cloud Endpoints的错误,google-cloud-platform,google-cloud-run,google-cloud-endpoints-v2,Google Cloud Platform,Google Cloud Run,Google Cloud Endpoints V2,使用ESPv2 Beta sidecar容器设置后端服务后收到以下错误消息 Serverless ESPv2 expects ENDPOINTS_SERVICE_NAME in environment variables. Did you forget to build the Endpoints service configuration into the ESPv2 image? Please refer to the official serverless quickstart t

使用ESPv2 Beta sidecar容器设置后端服务后收到以下错误消息

Serverless ESPv2 expects ENDPOINTS_SERVICE_NAME in environment variables.

 Did you forget to build the Endpoints service configuration
 into the ESPv2 image? Please refer to the official serverless
 quickstart tutorials (below) for more information.

 https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-run#configure_esp
 https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions#configure_esp

 If you are following along with these tutorials but have not
 reached the step above yet, this error is expected. Feel free
 to temporarily disregard this error message.

 If you wish to skip this step, please specify the name of the
 service in the ENDPOINTS_SERVICE_NAME environment variable.
 Note this deployment mode is **not** officially supported.
 It is recommended that you follow the tutorials linked above.
看起来我能够正确设置云运行服务,能够直接从API获取响应

查看
gcloud\u build\u图像
它似乎没有变量


更新您的Cloud Run环境变量,其中部署了如下云端点

gcloud beta run services update <SERVICE NAME> \
--set-env-vars ENDPOINTS_SERVICE_NAME=<SERVICE NAME>-<hash>-<REGION>.a.run.app \
--region <REGION> --platform managed
gcloud测试版运行服务更新\
--设置环境变量端点\服务\名称=-->.a.run.app\
--区域--平台管理

my

中的更多详细信息更新您的云运行环境变量,其中部署了如下云端点

gcloud beta run services update <SERVICE NAME> \
--set-env-vars ENDPOINTS_SERVICE_NAME=<SERVICE NAME>-<hash>-<REGION>.a.run.app \
--region <REGION> --platform managed
gcloud测试版运行服务更新\
--设置环境变量端点\服务\名称=-->.a.run.app\
--区域--平台管理

有关详细信息,请参见我的

,这是在流程的某些步骤中出现的预期错误。你能分享一下你正在遵循的步骤吗?只需遵循这里的指南:谢谢。看起来这只是流程的第一步。这是流程的某些步骤中出现的预期错误。你能分享一下你正在遵循的步骤吗?只需遵循这里的指南:谢谢。看起来这只是这个过程的第一步。