Clasp commands return offline error 90% of the time
See original GitHub issueExpected 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
- run a clasp command, for example
clasp push
orclasp pull
- 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:
- Created 2 years ago
- Reactions:9
- Comments:10 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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