Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error retrieving access token: Error: read ECONNRESET #203

Closed
OLEREO opened this issue May 31, 2018 · 5 comments
Closed

Error retrieving access token: Error: read ECONNRESET #203

OLEREO opened this issue May 31, 2018 · 5 comments

Comments

@OLEREO
Copy link

OLEREO commented May 31, 2018

Expected Behavior

Actual Behavior

Landing page display:

Logged in! You may close this page.

But clasp shows:

Error retrieving access token: Error: read ECONNRESET

I use Shadowsocks VPN in China,Maybe it's related to this?

Steps to Reproduce the Problem

1.clasp login

Specifications

@grant
Copy link
Contributor

grant commented Jul 3, 2018

I'm not sure. This error is probably because you are in China and the internet provider is blocking this API. As in, G Suite doesn't work in China.

There was a feature request to support proxies: #8

But I think you can just use a proxy with googleapis directly following these instructions:
https://www.npmjs.com/package/googleapis#using-a-proxy

I'll accept PRs for any fix you find a fix. Otherwise, I'll close this issue.
Feel free to comment here an I can reopen this issue.

@grant grant closed this as completed Jul 3, 2018
@andiechu
Copy link

andiechu commented May 9, 2019

Did you successfully log in clasp? How did you solve it? I have the same problem and I'm also using ShadowSocks too.

@andiechu
Copy link

andiechu commented May 9, 2019

I've solved it. I use ShadowsocksX-NG (a SS client on Mac OSX), so the http_proxy's port is 1087 as default. So just add this env:
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

Then run clasp login.

@zoudino
Copy link

zoudino commented May 7, 2021

Hi Andie @andiechu,

I am very new to the clasp and try to use proxy as well. However, I could not figure out the solution. When you were trying to add the env export http_proxy, were you editing on the clasp auth.ts like the following screenshot?
image
If not, could you direct me to a right direction? Your help is very much appreciated.

@zoudino
Copy link

zoudino commented May 7, 2021

I've solved it. I use ShadowsocksX-NG (a SS client on Mac OSX), so the http_proxy's port is 1087 as default. So just add this env:
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

Then run clasp login.

Hi Andie @andiechu,

I am very new to the clasp and try to use proxy as well. However, I could not figure out the solution. When you were trying to add the env export http_proxy, were you editing on the clasp auth.ts like the following screenshot?
image
If not, could you direct me to a right direction? Your help is very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants