Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stopping the error "Authorisation is required to perform that action" in Google Apps Script

I keep getting this error message when I try to view my deployed app.

Authorisation is required to perform that action

How do I get around the error?

Services in use in the script:

  • ScriptDB
  • UiApp

(I think that is all)

I can't find the answer in the documentation, so I would be very grateful for some help.

like image 932
Ryan Smith Avatar asked Jul 10 '12 20:07

Ryan Smith


People also ask

How do I stop a Google app script?

1 Answer. Show activity on this post. If you are in the code editor, and want to stop a script from running, you can click the "cancel" link in the toast display. Or you can click "View" -> "Executions" from the code editor and then terminate the script.

Why is my Google script not working?

There are a few possible causes for these errors: A Google server or system is temporarily unavailable. Wait for a few moments and try running the script again. There is an error in your script that doesn't have a corresponding error message.

How do I handle GET and POST HTTP requests in Google Apps Script?

Handle POST Requests with Google ScriptsThe callback function doPost is invoked when an HTTP POST request is make to your Google Script URL that is published as a web app with anonymous access. const doPost = (request) => { console. log(request); return ContentService. crateTextOutput(JSON.


1 Answers

You need to go the script editor and attempt to run any function manually first.

A first authorization popup is shown when you first deploy as web app, but if you go and change the code accessing new services you have to re-authorize it.

like image 171
Henrique G. Abreu Avatar answered Oct 08 '22 05:10

Henrique G. Abreu