Google apps script and execution API: latest version of script throws error

后端 未结 1 1237
名媛妹妹
名媛妹妹 2020-12-22 06:37

I am following the hello world here:

https://developers.google.com/apps-script/guides/rest/quickstart/target-script

Then I update the script with new featu

相关标签:
1条回答
  • 2020-12-22 07:15

    The Execution API will use the currently published version of your script if devMode is false or omitted from the request. What I am suspecting is that there was a change of OAuth scopes in your script. The users's OAuth token needs to include all the scopes your project requires.

    Open your project's properties and click on the scopes tab. Make sure your java client's OAuth scope request matches what is in the list. You may have extra scopes in your client, but you need to at least include all that are in that list.

    Also in the Execution API deployment dialog there is an option limiting access to yourself, your domain, or anyone. Make sure the the user account you are using on the client matches your choice.

    0 讨论(0)
提交回复
热议问题