Can't open Google Sites Apps Scripts anymore - google-apps-script

In Google Sites:
- Go to "Manage Site"
- Click Google Apps Scripts
- (I have 2 scripts here)
- Click on one of the available scripts
A new tab opens with the error message: "A server error or bug occurred. If reloading the page doesn't help, please contact us."
What's wrong? How can I get Google to look at my problem?
The script itself is still working, just I can't view or edit it anymore.
https://sites.google.com/site/stamboomvanaken/test

This problem is reported to Google. Google works on it. Star this issue on the issue tracker.

EDIT : an even simpler (and better ) workaround has been posted on the issue trcker by martinkociman
If you use Chrome you can get the ID of your script and insert this ID in the URL like this :
https://script.google.com/d/---------ID------------/edit
here is a screen capture of Chrome inspector, it worked for me on every gadgets ;-)

Related

Google App Script not working in incognito mode

i've been learning with google app script, and tried to make a web form because of the limitation of google form. I tried making it by following this example, and it works. However when I tried using incognito or other browser without a google account log on to it, it failed, showing this error
"Maaf, terjadi error pada server saat membaca dari penyimpanan. Kode error INTERNAL."
Which is in Indonesian that basically states the server failed to read the file, and there is an internal error. This is the web app script.
Settings for the web app deployment
Also in the spreadsheet linked is set to anyone with link is able to edit. When this is changed to anyone with link is able to view only, causes a log in prompt to appear in incognito mode.
Any help is greatly appreciated. I also found out earlier that this problem occurred previously because of a bug by google, but it has been resolved. So did I do something wrong?
According to the Apps Script Web Apps documentation:
The first is labeled Current web app URL and ends in /exec. This URL is for the published version of your app, based on the last version you saved and deployed.
The second is the link labeled latest code and ends in /dev. This URL can only be accessed by users who have edit access to the script. This instance of the app always runs the most recently saved code — not necessarily a formal version — and is intended for quick testing during development.
Therefore, when sharing the web application, you should be sharing the /exec link.
There is an open bug for this: https://issuetracker.google.com/issues/160665120

Google Apps Script works in \dev but no in \exec mode

First I have to apologize because English is not my native language and also because I'm just starting in developing. Sorry for all of that.
My question is that when I deploy my app script as a web app the page does not work; but when I used the "Test web app for your latest code" it does work. I don't understand why in the first case (the url finishes with a \exec) appears an error and in the second works nice (the url finishes with a \dev).
The Google Drive error is : The file cannot be opened at this time. Please check the address and try again.
I'm so confused because the web app was working nice, and suddenly it started to show that error, but I did not change anything in the code.
I don´t know if it is related with permissions. I've tried to create new versions but it does not solve it.
Any idea how can I solved it?

Embedded Script (Tasks List API Sample) throws "'Tasks' is not defined" error (works when run in Scripts)

When attempting to embed Google’s sample provided for the Tasks API (code found here) into Google's Classic Sites I get the dreaded “script.google.com refused to connect”. The logging error is "Tasks" is not defined at getTasksLists(simpleTasks:15). Details:
When I embed this same script into Google's New Sites, the UI does show, but the drop-down continues to display “Loading…” (see screenshot below), however if I click on the link provided to view my “Google Tasks” it does go to my Tasks in a new window.
This runs successfully directly from Google Apps Scripts, showing the “Authorization required” pop-up and allowing me to sign in and accept permissions. However, when embedded into both New and Classic sites, it does not request any authorization.
Steps I've taken embedding into Classic Sites (where it needs to be):
from URL provided above: copied code exactly as is into a new Scripts project (nothing altered or added).
from Scripts: deployed it as a Web App, copied the URL provided (the code provided in the link above has not been altered in any way by me)
from Scripts: enabled Tasks API though Resources, Advanced Google Services
from Sites: edit page, Insert Apps Script, pasted URL (i.e. https//script.google.com/macros/s/...5Ym41qn/exec)
Other things I've tried:
from Sites: embedding URL as an iFrame gadget (same results)
solution given here: How to add Google Drive Scripts project into Google Sites? (same results)
days of research into Google's documentation (for Sites, APIs, Scripts, Cloud Platform, you name it)... (various results but nothing productive)
I am very new to working with Sites, Scripts, the Cloud Platform, etc. so apologies if I am missing some obvious steps here. Any guidance would be truly appreciated!
Leora
UPDATE [03-21-19]:
I was able to get this working finally! Although not posting as answer just yet as I haven't figured out the exact change that was brought success.
I thought it was by changing the option within Sites' Publish / Deploy as web app... / Execute the app as: from 'ME' to 'USER' (after doing that it worked), but when I changed it back to make sure that was it, it still worked?
I will play around with it more this weekend and update when I come to a definitive solution.
Thanks to anyone who took the time to help me out here, and if anyone does have any guidance on what's happening here, I'd love to know.

Google Apps Script web editor crashing on open

For first few days of scriptig it has worked fine.
But yesterday it has stop working. Every time I open editor no code is visible and editor show generic error message "occurred unexcepted error". See screenshot.
After testing and research I found some facts
problem occures on both my google account (company and personal)
problem occures on every document (even if I open script editor for first time on this document)
problem occures on both my PC on chrome
clear chrome cache didnt help
in FF editor is working fine
Sorry for screen in czech, but I am not able change language becouse all gui is disabled.
Error screenshot
You can change language in browser preferences.
Which web browser are you using ? Have you try an over one ?

Apps Script gadget on custom domain shows "We're sorry, but we were unable to locate the page you requested."

I have created own apps script gadget in the site and inserted it in a page. When I open the site at http://sites.google.com/a/mydomain.com/www/sms-zprava it works. When I use my custom domain http://www.mydomain/sms-zprava it doesn't. The error "We're sorry, but we were unable to locate the page you requested." is shown. The gadget uses UI API.
This is a known issue and there's no solution for it yet. You should star it to keep track of updates and kind of vote for it.