![](/img/trans.png)
[英]Unable to load AWS credentials from ~/.aws/config and ~/.aws/credentials file
[英]Unable to call discovery.build('compute', 'v1', credentials=credentials) from GCE
在运行构建命令时,它会超时。
from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
credentials = GoogleCredentials.get_application_default()
service = discovery.build('compute', 'v1', credentials=credentials)
我只在正确设置环境的情况下在计算引擎上运行它。 这是较早的工作。 我能够运行service = discovery.build('storage', 'v1', credentials=credentials)
我现在得到的错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 250, in build
developerKey, num_retries=num_retries
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/discovery.py", line 316, in _retrieve_discovery_doc
resp, content = req.execute(num_retries=num_retries)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 901, in execute
headers=self.headers,
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 204, in _retry_request
raise exception
ssl.SSLError: ('The read operation timed out',)
计算引擎 API 有问题吗? 任何线索都会有所帮助。
这是一个已知的临时问题。 来自https://status.cloud.google.com/
Google 的 API Discovery Service GetRest ( https://www.googleapis.com/discovery/v1/apis/pubsub/v1/rest ) 请求在以下区域挂起:asia-northeast1、asia-northeast2、asia-northeast3、asia- southeast1、europe-west1、europe-west3、europe-west6、europe-west4、northamerica-northeast1、southamerica-east1、us-central1、us-east1、us-west1、us-west2 和 us-west4。
我们目前正在努力通过回滚配置更改来缓解。 下次更新时间为 2020-10-08 星期四 07:00 US/Pacific。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.