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

Looks like you are offline || Error: read ECONNRESET proxyIpAddress:port #332

Closed
sjlee-jlp opened this issue Sep 24, 2018 · 9 comments
Closed

Comments

@sjlee-jlp
Copy link

Two issues.
While hard wired in, on the corporate proxies I get the first error.
While on our open WiFi, I get the second error.

Error 1

Expected Behavior

Logged in! You may close this page.

Actual Behavior

Error: Looks like you are offline.

Steps to Reproduce the Problem

  1. clasp login

Specifications

  • Node version: v10.9.0
  • Version: 1.5.3
  • OS: Windows 10 Version 1709 (OS Build 16299.611)

Error 2

Expected Behavior

Logged in! You may close this page.

Actual Behavior

Error retrieving access token: Error: read ECONNRESET proxyIpAddress:port

Steps to Reproduce the Problem

  1. clasp login
  2. log in to account via browser window that opened
  3. wait

Specifications

  • Node version: v10.9.0
  • Version: 1.5.3
  • OS: Windows 10 Version 1709 (OS Build 16299.611)
@puentesdiaz
Copy link

puentesdiaz commented Sep 24, 2018

Me too.
clasp login
return
Error: Looks like you are offline.

Iam behind proxy corporative, too ...
I can use npm for install package fine using proxy corporate.... but when i want use clasp, always say that iam offine

Also i install another package like

is-online

and also return
Offline

@grant
Copy link
Contributor

grant commented Sep 24, 2018

@sjlee-jlp or @puentesdiaz Can you file a bug in https://github.com/sindresorhus/is-online?

@sjlee-jlp
Copy link
Author

Installed is-online and the is-online-cli.

CLI returns:

c:>is-online
× Offline

However, I'm quite clearly online...

@grant
Copy link
Contributor

grant commented Sep 25, 2018

Can you let me know when you filed the bug in is-online and link the bug here so we can see if we can solve the root issue?
We may have to disable it if it is really not working.

@campionfellin
Copy link
Collaborator

May not necessarily be a bug in is-online. That package checks 3 sites:

https://github.com/sindresorhus/is-online#how-it-works

Could just be that all 3 are blocked on your network.

@sjlee-jlp
Copy link
Author

Going through and checking against each of these manually:

Each of these return as expected icanhazip.com, icanhazptr.com, icanhaztrace.com, icanhaztraceroute.com, icanhazepoch.com.

icanhazproxy.com doesn't return anything.

https://diagnostic.opendns.com/myip returns as expected.

http://captive.apple.com/hotspot-detect.html returns as expected.

So could be something weird happening with is-online.

@grant
Copy link
Contributor

grant commented Oct 29, 2018

I think this issue is fixed.
You shouldn't get the error Error: Looks like you are offline if you have a proxy.
cec4eeb

Please re-open if this is still an issue.

@grant grant closed this as completed Oct 29, 2018
@chentao1006
Copy link

Sorry, I have to re-open this ticket.

I'm using proxy and all other commands are working fine.

iShot2022-03-11 17 04 11

@Nu11u5
Copy link
Contributor

Nu11u5 commented Mar 11, 2022

Make sure that the https_proxy environment variable is set correctly. This value is typically used by terminal applications for proxy settings and is used by clasp.

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

6 participants