google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.53k stars 423 forks source link

Error: Looks like you offline #934

Closed jvanalst closed 2 years ago

jvanalst commented 2 years ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

That it actually work without error. Tried it with both a Personal and Enterprise Google Accounts. Both had the same issue.

Actual Behavior

% clasp login Logging in globally… 🔑 Authorize clasp by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=... Authorization successful.

Default credentials saved to: /Users/vanalsti/.clasprc.json.

% clasp clone 1vSgFkRCFRM52k4VL_dQROAUWzmR6DqLRkUkZpD7jvvFYewoXhPuGKzjT ⠙ Cloning files…script.google.com ✖ console.developers.google.com ✖ console.cloud.google.com ✖ drive.google.com ✖ Error: Looks like you are offline.

% clasp create foobar script.google.com ✖ console.developers.google.com ✖ console.cloud.google.com ✖ drive.google.com ✖ Error: Looks like you are offline.

% clasp login --status script.google.com ✖ console.developers.google.com ✖ console.cloud.google.com ✖ drive.google.com ✖ Error: Looks like you are offline.

% clasp login Warning: You seem to already be logged in globally. You have a ~/.clasprc.json Logging in globally… 🔑 Authorize clasp by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=...

Authorization successful.

% clasp login --status console.developers.google.com ✖ script.google.com ✖ console.cloud.google.com ✖ drive.google.com ✖ Error: Looks like you are offline.

Steps to Reproduce the Problem

  1. clasp login
  2. clasp create/clone/etc.

Specifications

jvanalst commented 2 years ago

All doesn't work work with Clasp 2.4.1 on Node 14.

jvanalst commented 2 years ago

Possibly Related: https://github.com/google/clasp/issues/872

jvanalst commented 2 years ago

Downgraded clasp to 2.3.1 seems to work.