我正在尝试通过'gactions登录'设置链接到云的帐户,我遇到了一个错误。我猜不到下面显示的代理错误:
C:codesesdashboard>gactions login
Gactions needs access to your Google account. Please copy & paste the URL below into a web browser and follow the instructions there. Then copy and paste the authorization code from the browser back here.
Visit this URL:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=619137215474-qf2rvbl5ne24t476dkc3gc3phlak4eg7.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Factions.builder&state=state
Enter authorization code:
returned_valid_token__from_website_Auth_entered_here
[ERROR] Post "https://oauth2.googleapis.com/token": proxyconnect tcp: dial tcp 23.221.222.250:8080: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
我在一台公司笔记本电脑上,清除了HTTP_PROXY和HTTPS_PROXY,并关闭了VPN。
任何帮助都是感激的。
这是一个OAuth流。
提示您访问URL(您应该这样做)。
系统将提示您使用Google (Gmail)帐户登录。
当您这样做时,您将获得一个令牌,您可以将其复制到gactions login
命令的提示符Enter authorization code
中。
这完成了流程,并通过您的Google (Gmail)帐户验证gactions
。
所以它神奇地为我工作。不完全确定为什么。
使用Windows命令终端
C:WINDOWSsystem32>set HTTP_PROXY=
C:WINDOWSsystem32>set HTTPS_PROXY=
C:WINDOWSsystem32>gactions login
Gactions needs access to your Google account. Please copy & paste the URL below into a web browser and follow the instructions there. Then copy and paste the authorization code from the browser back here.
Visit this URL:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=619137215474-qf2rvbl5ne24t476dkc3gc3phlak4eg7.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Factions.builder&state=state
Enter authorization code:
4/1AY0e-g5rdKj1hoQfhFk--replacedToken
Done. Successfully logged in.