ChelaTheGreat
ChelaTheGreat

Reputation: 75

Google Apps Script, script completed but did not return anything

I've shared an App i'm working on with "Anyone who has the link", yet i can't access the app as a different user.

Here's the App link: https://script.google.com/macros/s/AKfycbxjdyMyvIF8aYDBPurTi4VgVBP8PiiS76vh3mJXKCtFmljdmChK/exec Here's a sample App link i shared with similar settings that worked: https://script.google.com/macros/s/AKfycbwTM_gkT62IqpKjG52ZMh6LWo-gBKZyfcpmrrqNavdiuC71KsNv/exec

App Deployment Settings:

*Execute the app as: [email protected]

Who has access to the app: Anyone

The app uses ScriptDB.*

My App will be useless if it can't be eventually accessed publicly. Your suggestions will be very much appreciated.

Upvotes: 6

Views: 9939

Answers (1)

megabyte1024
megabyte1024

Reputation: 8650

The problem is that the doGet function in your code returns nothing and it should return a new app instance or HTML content, like in the Documentation. You have to change the doGet function in the following way.

function doGet(e){
  //...
  return html;
}

Upvotes: 6

Related Questions