Following the examples on https://developers.google.com/apps-script/guides/html/communication I cannot make the simplest example work when embedded in the sidebar for a spreadsheet. If I publish the script as web app and open the URL the server side function is correctly found and executed (i.e. how the example is supposed to work), but when I use the same html output in the sidebar the execution always fails. Is there a way to debug what is going on on the server or is there any steps one should take when using html service embedded in sidebar to make server side calling to work? As explained I am using the example directly from the help page and it still does not work.
[14-07-19 18:22:23:455 EEST] Starting execution
[14-07-19 18:22:23:486 EEST] Execution failed: We're sorry, a server error occurred.
Please wait a bit and try again. [0.0 seconds total runtime]
...when I use the doGet it works as expected
Any ideas or help would be greatly appreciated.
onOpen
, opened the dialog from the Utilities menu, dialog popped up with only a title, log has a single entry:[14-07-19 12:47:34:864 EDT] Received object
. That's a "works for me". Humor me; make a new spreadsheet, and put your script in it, and see if it works there. You could have a file that's in "Googhell". – Mogsdad