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 results in Google Drive error for all deployments of Web App

See original GitHub issue

Expected 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

  1. clasp create
  2. echo "<h1>Hello World</h1>" > index.html
  3. 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
  1. clasp push
  2. clasp deployments
  3. Attempt to open the HEAD deployment
  4. Manually publish and then HEAD works

Specifications

  • Node version: 6.11.4
  • Version: 1.3
  • OS: Linux

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TrojanCodercommented, May 21, 2018

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).

0reactions
grantcommented, Jan 25, 2019

@takanakahiko I think so. Closing. Re-open if this is still an issue.

Read more comments on GitHub >

github_iconTop 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 >

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