Hi there,
I've been trying to get
$ clasp run
and
$ clasp logs
working.
I've followed some of the better documentation:
I don't think I've fallen for the common problems, and part of me wonders if they work for *anyone* at the moment?
clasp pull and push work well for me:
tdobson@tragicomix:~/dev/clasp-demo$ clasp push
└─ /home/tdobson/dev/clasp-demo/appsscript.json
└─ /home/tdobson/dev/clasp-demo/Code.js
└─ /home/tdobson/dev/clasp-demo/helper functions.js
└─ /home/tdobson/dev/clasp-demo/main.js
└─ /home/tdobson/dev/clasp-demo/test.js
Pushed 5 files.
tdobson@tragicomix:~/dev/clasp-demo$ clasp deploy
Created version 15.
Only users in the same domain as the script owner may deploy this script.
tdobson@tragicomix:~/dev/clasp-demo$ clasp run lol
Running in dev mode.
Script API executable not published/deployed.
tdobson@tragicomix:~/dev/clasp-demo$ clasp logs
The projectId "test-appscript-project123" looks incorrect.
Did you provide the correct projectID?
(I managed to find the logs in the web based GCP cloud log viewer... so yes, it is the right ID)
appscript.json contains:
{
"timeZone":
"Europe/London",
"executionApi": {
"access":
"ANYONE"
},
"webapp": {
"executeAs":
"USER_ACCESSING",
"access":
"MYSELF"
},
"oauthScopes": [
"https://www.googleapis.com/auth/script.deployments",
"https://www.googleapis.com/auth/script.projects",
"https://www.googleapis.com/auth/script.webapp.deploy",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/service.management",
"https://www.googleapis.com/auth/logging.read",
"https://www.googleapis.com/auth/cloud-platform"
],
"exceptionLogging":
"STACKDRIVER"
}
Can anyone conclusively say that they work?
-Tim