1
votes

I've been working with my apps embedded on our Site for a while without any inconvenience when suddenly they stopped working...

From what I've been able to troubleshoot, the calls I do to my scripts using google.script.run from the Javascript code within the HTML don't go through anymore... Whenever it tries to execute the code I get the following alert through a withFailureHandler(alert):

NetworkError: Connection Failure due to HTTP 405

This is happening on all our apps throughout our Site.

Where it really gets fishy is that the scripts work fine if they are not embedded on the site and also the first time you save the page with an embedded app on it (after refreshing the page it stops working again)...


Here you can check some examples of two apps:

With user Authorization

Without user Authorization


What happened? We are actually working with this on a daily basis and need to get a stable version out... I would greatly appreciate any help!

EDIT:

I just found out this error comes from the Google Universal Login we were using: https://www.google.com/a/UniversalLogin?service=jotspot&continue=http://sites.google.com/a/maddingcrowd.cc/madding-crowd/pitches/love-experiments

It automatically adds the

?pli=1

to the end of the URL and this little squeezer provokes the error to pop out...

Does anyone know the reason? Or why this piece of string gets added to the end? We added the universal Login since the Apps can't be seen if you are not already logged in with your google account

1
Are you accessing the Universal Login from an Apps Script "gadget" or including that in a Site in some otherway?Arun Nagarajan
we were hard-coding hyperlinks with the Universal Login on the Site and on social networks to make sure people are logged in and can see the apps on the page right awaythasanty

1 Answers

0
votes

Arun, I have the same problem with a script embedded on a site. The script also gets a parameter passed in the URL (like: https://script.google.com/a/macros/tvh.com/exec?service=someid&something=somevalue)

If I call the script like this in a webbrowser I haven't noticed problems: https://script.google.com/macros/s/someid/exec?something=somevalue But if I use that url to embed it in a site 'something=somevalue' is stripped from the URL (I assume by Google Sites) and not available to the script so it fails.