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 push fails silently

See original GitHub issue

clasp push fails with no error log:

Expected Behavior

After clasp push, expect edits to be present in web interface.

Actual Behavior

Clasp push produces following output: Push failed. Errors: No errors are displayed.

Steps to Reproduce the Problem

  1. clasp clone <script ID>
  2. edit script file
  3. clasp push

Specifications

  • Node version (node -v): v7.5.0
  • Version (clasp -v): 1.4.0
  • OS (Mac/Linux/Windows): Mac OS 10.13.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
magerancommented, Mar 4, 2019

In my case, the reason for silent failure where backup files left behind by emacs (#somefile.js#). clasp status returned some useful message, which pointed me to that.

2reactions
ikedaosushicommented, Jul 24, 2018

Me too. The same error occurs although the apps script API is enabled.

ADD Now, I updated to clasp@1.5 (before 1.4), it no longer displays the error. However, it takes very long time and not push actually. It display unexpected results as below.

$ clasp push
... (too long)
└─ node_modules/watch/test/test_monitorRootDirectory.js
└─ node_modules/watch/test/test_watchTree.js
└─ node_modules/which/which.js
└─ node_modules/wrappy/wrappy.js
└─ node_modules/yallist/iterator.js
└─ node_modules/yallist/yallist.js
└─ mycode.js
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 >
How to Write Google Apps Script Code Locally in VS Code ...
Once you write some code, you can deploy it with the clasp push command. Most of the time I add the -w option...
Read more >
Using TypeScript with Google Apps Script and Google Ads ...
Clasp, or Command Line Apps Script Project, is a command line tool that lets you develop Apps Script code locally, in Javascript or ......
Read more >
Apps Script with clasp - Sweetcode.io
Use clasp push and clasp open to push the script to the cloud and open it for execution respectively. From the Apps Script...
Read more >
Google Apps Scripts, Clasp and Data Studio
Clasp will complain with meaningful error messages if you have forgotten a step, and it will usually provide a link, either to authorize...
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