endpointscfg.py给出了无效的选择。get_openapi_spec
问题描述:
我需要使用附带的新的endpointscfg.py
发行按documentation是endpointscfg.py给出了无效的选择。get_openapi_spec
endpointscfg.py get_openapi_spec cfcapi.GreetingApi cfcmelbourne.org
我得到的错误是
WARNING:root:An exception has been encountered when attempting to use Application Default Credentials: An error was encountered while reading json file: C:\Code\Video-Archive\requirements.txt (pointed to by GOOGLE_APPLICATION_CREDENTIALS environment variable): No JSON object could be decoded. Falling back on dummy AppIdentityServiceStub.
usage: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\endpointscfg.py
[-h] {get_client_lib, get_discovery_doc} ...
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\endpointscfg.py: error: argument {get_client_lib, get_discovery_doc}: invalid choice: 'get_openapi_spec' (choose from 'get_client_lib', 'get_discovery_doc')
答
命令端点库。您使用的版本是通过Cloud SDK分发的旧版本。
您使用的是哪个版本的端点? – saiyr
框架v-2版 –