Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法使用OpenApi部署云终结点_Python_Google Cloud Platform_Google Cloud Endpoints_Openapi_Google Cloud Endpoints V2 - Fatal编程技术网

Python 无法使用OpenApi部署云终结点

Python 无法使用OpenApi部署云终结点,python,google-cloud-platform,google-cloud-endpoints,openapi,google-cloud-endpoints-v2,Python,Google Cloud Platform,Google Cloud Endpoints,Openapi,Google Cloud Endpoints V2,我有python2.7API服务器,使用googlecloudendpoints框架。我遵循GitHub中的示例,按照文档中的说明编写服务和配置代码 当我尝试使用部署端点时 gcloud endpoints services deploy echov1openapi.json 使用api json文件,我得到一个错误: OperationErrorException: The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc

我有
python2.7
API
服务器,使用
googlecloudendpoints
框架。我遵循GitHub中的示例,按照文档中的说明编写服务和配置代码

当我尝试使用部署端点时

gcloud endpoints services deploy echov1openapi.json
使用api json文件,我得到一个错误:

OperationErrorException: The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e resulted in a failure.

ERROR: (gcloud.endpoints.services.deploy) The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e resulted in a failure.
我验证是否启用了所有必需的API

我尝试使用
debug
选项运行部署命令:

gcloud --verbosity=debug endpoints services deploy echov1openapi.json
终端中没有任何其他或附加错误

我还查看了官方的疑难解答页面,但没有描述此问题

甚至当我试图从GitHub部署官方示例时,我也遇到了同样的问题

这是调试中的日志:

DEBUG: Running [gcloud.endpoints.services.deploy] with arguments: [--verbosity: "debug", SERVICE_CONFIG_FILE:1: "[u'paymentsv1openapi.json']"]
Waiting for async operation operations/serviceConfigs.MY_PROJECT_ID.appspot.com:48e87eda-7009-47a1-9625-2ca1da025500 to complete...
Operation finished successfully. The following command can describe the Operation details:
 gcloud endpoints operations describe operations/serviceConfigs.MY_PROJECT_ID.appspot.com:48e87eda-7009-47a1-9625-2ca1da025500

Waiting for async operation operations/rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e to complete...
DEBUG: (gcloud.endpoints.services.deploy) The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e resulted in a failure.
Traceback (most recent call last):
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 985, in Execute
    resources = calliope_command.Run(cli=self, args=args)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 795, in Run
    resources = command_instance.Run(args)
  File "/usr/lib/google-cloud-sdk/lib/surface/endpoints/services/deploy.py", line 393, in Run
    services_util.ProcessOperationResult(rollout_operation, args.async)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/endpoints/services_util.py", line 481, in ProcessOperationResult
    op = GetProcessedOperationResult(result, is_async)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/endpoints/services_util.py", line 526, in GetProcessedOperationResult
    op_ref, GetClientInstance()))
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/endpoints/services_util.py", line 583, in WaitForOperation
    'The operation with ID {0} resulted in a failure.'.format(operation_id))
OperationErrorException: The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e resulted in a failure.
ERROR: (gcloud.endpoints.services.deploy) The operation with ID rollouts.MY_PROJECT_ID.appspot.com:5939cc3b-0b4a-4047-87d5-856ebdd44c0e resulted in a failure.

据报道,谷歌知道这个问题,并正在积极努力解决它。

由于谷歌的原因,这个问题已经得到解决


我今天也第一次看到这一点,想知道这是否是由于谷歌早些时候的宕机造成的。也发布到了usenet:我想这是谷歌的宕机。我今天第一次看到这个,从它工作的时候起,我没有改变任何东西。现在似乎已经修好了。