【发布时间】:2017-03-01 19:46:11
【问题描述】:
我正在尝试在工作中使用 Google Cloud 的自然语言 API,我认为我的公司防火墙阻止了 python 和 google cloud 之间的通信。
在终端输入以下内容后:
gcloud auth application-default login
我的浏览器打开并成功登录我的谷歌帐户。但是,在我登录后,我得到了
ERROR: There was a problem with web authentication. Try running a
gain with --no-launch-browser.
ERROR: (gcloud.auth.application-default.login) Could not reach th
e login server. A potential cause of this could be because you ar
e behind a proxy. Please set the environment variables HTTPS_PROX
Y and HTTP_PROXY to the address of the proxy in the format "proto
col://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
我认为我需要联系我的 IT 部门为我们的防火墙添加例外。有谁知道google cloud的自然语言处理API的地址/端口是什么?
【问题讨论】:
标签: python google-cloud-platform google-cloud-nl