since few days, when I try to invoke all scripts as service with parameter "state", I receive a strange "Google Docs has encountered a server error", method doGet is not ever called!
Please, can you confirm that something is changed?
Steps to reproduce the problem:
Create a simple apps script with only getMethod
function doGet(e) { Logger.log("doGet"); MailApp.sendEmail("[email protected]", "Log", Logger.getLog());var app = UiApp.createApplication(); return app; }
Publish the service
Invoke the script from browser passing "state" parameter
https://sites.google.com/macros/exec?service=AKfycbwrrSzd5PM07HgmuOSE1UsXxO9MmGTEOEwvXQC1&state=sample_parameter
The server returns error:
Google Docs has encountered a server error. If reloading the page doesn't help, please contact us.To discuss this or other issues, visit the Google Docs Help forum. To see the list of known problems, check the Google Docs Known Issues page. Sorry, and thanks for your help! - The Google Docs Team
I've also opened issue
Thanks all, Francesco
EDIT: Issue has been fixed! Thanks all.
Creating the issue report was the right thing to do. But note that this will probably not be "fixed" in the way you want. They will probably just include in the documentation that you can not use a parameter named "state".
The solution is just to use a different name, e.g. myState or something else. Not very annoying or difficult to do IMHO.
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