I came across a weird issue, I created a sample google app script and then published it as a web application. The URL that was published was of -XXXXX format, while I made some changes to the script and re-deployed it as a web app, it did show me the current deployed web app URl, while the 'latest code' showed a URL of YYYYY format. While I do understand that URL-YYYY is my updated google app script, I fail to understand if this is a bug? Or if this is expected (Am I missing something else here)
The "latest code" URL is a developers-only address, with a unique ID followed by /dev
. Only the owner of the script can access this, and it will always show the results of the current code.
The published application has a URL with a different unique ID followed by /exec
. To show results of updated code, the author must first save a new version, then publish that version.
That is not the problem. There appears to be a bug which does not update the published script. I needed to delete the script completely, save it and add back my saved code. I kept publishing, getting the "exec" version and it never used the new code until I did this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With