question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clasp commands return offline error 90% of the time

See original GitHub issue

Expected Behavior

No error

Actual Behavior

Almost every time I run a clasp command, I receive this error with one or all of the domains listed

drive.google.com ✖
console.developers.google.com ✖
script.google.com ✖
Error: Looks like you are offline.

Once in a while the command manages to work successfully, but sometimes I have to retry the command 10+ times.

Steps to Reproduce the Problem

  1. run a clasp command, for example clasp push or clasp pull
  2. receive error

Specifications

  • Node version (node -v): 16.7.0
  • Version (clasp -v): 2.4.1
  • OS (Mac/Linux/Windows): macOS Catalina (10.15.7)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
grantcommented, Sep 1, 2022

I would remove the feature that checks if you’re online on not:

https://github.com/google/clasp/blob/e851215b8abe4de282c62c4d61076c85e89a56ba/src/utils.ts#L220-L226

2reactions
dsuzukicommented, May 27, 2022

node v16.15.0 clasp 2.3.1 worked for me. So, it seems to be a bug in the clasp. Hope it will be fixed in 2.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google sheets: clasp push command fails - Stack Overflow
I am trying to push Google App Scripts code to cloud using the following command clasp push. But it fails with the following...
Read more >
メモ : claspで「Error: Looks like you are offline.」の対処方。
実行環境. macOS Big Sur v11.6.6 node v16.5.0 clasp v2.4.1. 参考リンク. Clasp commands return offline error 90% of the time. 対処法.
Read more >
Federal Bureau of Investigation
missing persons; locating and returning stolen property; ... offline searches allow select users to retrieve information from the NCIC using any data field....
Read more >
Dell PowerVault ML6000 Maintenance Guide
command. Note that you will lose all your current library configuration information except for network settings, date and time, and license keys.
Read more >
E-Series Operators Manual.book - Diagraph
correct any error at the time of the manual's next revision. ... The labeler will not work properly if the label supply angle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found