Clasp push results in Google Drive error for all deployments of Web App
See original GitHub issueExpected Behavior
Write code locally and then push it for server side testing (the Web App relies on Google so I can only test so much locally).
Actual Behavior
When I push and then navigate to any deployment url, including the special HEAD one that ends in /dev, I get a web page with the title “Google Drive Error” and the following message:
Google Docs encountered an error. Please try reloading this page, or coming back to it in a few minutes.
To learn more about the Google Docs editors, please visit our help center.
We’re sorry for the inconvenience.
- The Google Docs Team
In order to view any changes I have to reload the browser Script Editor and go to Publish > Deploy as Web App
Steps to Reproduce the Problem
clasp create
echo "<h1>Hello World</h1>" > index.html
- Create following js file via this script:
cat << EOF > test.js
function doGet() {
console.log('Running doGet()')
return HtmlService
.createTemplateFromFile('index')
.evaluate();
}
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename)
.getContent();
}
EOF
clasp push
clasp deployments
- Attempt to open the HEAD deployment
- Manually publish and then HEAD works
Specifications
- Node version: 6.11.4
- Version: 1.3
- OS: Linux
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How to deploy a Google Apps Script web app with clasp?
The command went through without errors. I can see a new version of the script created but the deployment is not updated: no...
Read more >Fix common issues in Google Drive
Fix common issues in Google Drive · Step 1: Check your Internet connection · Step 2: Check your browser version · Step 3:...
Read more >unchanged apps script is suddenly reporting "Server Error ...
My apps script is reporting a server-side error repeatedly. ... The Apps Script affected for me was a deployed web app. ... facing...
Read more >Google Apps Script for Developers - Digital Inspiration
During build, Webpack will bundle all your code in a single JavaScript file and add it to the ./dist folder that Clasp will...
Read more >Google Apps Script Local Development Tutorial - David Barreto
To push our files to Google Drive, we can use clasp ... to our spreadsheet and open the script editor, we will find...
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 FreeTop 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
Top GitHub Comments
I’ve updated the steps. I’m not including deploy issues because it seems like that’s covered by #63. If it matters adding a version and deployment after clasp push has no effect, and this happens after manually deploying the first time (so the script editor says the project is published in the lower left).
@takanakahiko I think so. Closing. Re-open if this is still an issue.