I have a published Add-on in web store for Google Docs. I have also been able to make changes to it and re-publish to web store couple of times in past.
But when I made a recent change to add-on, it won't allow me to test as Add-on again. Only error I am getting is:
"There was a problem testing the script as an add-on. Please try again later."
I see in Google's Issue tracker that such problems have been reported but for Add-on for Google Sheet where Sheet being tested was deleted was causing the issue.
https://issuetracker.google.com/issues/36763685
I have used different Apps script projects to test the code before copying it to published Add-on. Now I am not able to get Select Document screen either.
Same Apps-script project if copied and run as Add-on, it works fine, but not published version. Since this is already a web store published add-on, I need to make this version work.
Any pointers will be of great help. Thanks!
Related
I am new to Google Apps Script projects, and have a Google Calendar add-on that I have been working on. My users recently came across some bugs, and I realized that I had no idea how to go back to the version they were on, and save the current updates I was working on at the same time, like a github branch.
I did some research and couldn't find anything out online, so just want to know if there are any other alternatives other than pulling down all code locally and uploading it to my personal GitHub.
To make your add-on go back to a previous version, just go to the Google Workspace Marketplace SDK and set the version number that you want to make available for your add-on users.
The Google Apps Script web editor it will always be showing the head deployment. You might use Google Apps Script API / CLASP to get access to any version. If you want to use the web editor, you should overwrite the files of with the version that you want to use.
I have a Gmail Add-on deployed on marketplace, it was working fine but now when a user have multiple accounts logged into gmail and tries to install my add-on. It shows the error
Sorry, unable to open the file at this time.
Please check the address and try again.
The URL of opened popup is (script_id is my project's script id ): https://script.google.com/macros/u/1/s/<script_id>/authorize?scopes=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.current.action.compose%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.current.message.metadata%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fgmail.addons.execute%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fscript.external_request%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%2Chttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile
When only one account is logged into Gmail, then it works as expected and add-on is installed normally.
I checked other solutions to the same problem, then say we need to remove /u/1/ from the URL. I copy pasted the URL into another tab and removed /u/1/ from the URL. I still got the same error. Also, this URL is generated by Google and not by us, so we cannot edit it.
Any help for the problem mentioned above will be appreciated.
Thanks in advance.
This is a well known issue regarding Apps Script and the way Google handles multiple accounts being logged in.
The documentation states the following regarding this matter:
If you're logged into multiple Google Accounts at the same time, you might have trouble accessing your Apps Script projects, add-ons, and web apps. Multi-login, or being logged into multiple Google Accounts at once, isn't supported for Apps Script, add-ons, or web apps.
Possible workarounds for this include:
Logging out of all your Google Accounts and only log in to the one that has the Apps Script project, add-on, or web app you need to access.
Opening an incognito window in Google Chrome, or an equivalent private browsing window, and log in to the Google Account that has the Apps Script project, add-on, or web app you need to access.
This is currently being tracked on this report here; I suggest you star it as any updates regarding this will be posted there.
Reference
Apps Script Script Projects.
I made an Apps Script for Google Sheets and published it as an editor Add-on for my company domain. Its one custom function and when I did an individual install for myself it works fine. And when anyone else in the org does an individual install it works fine. However when installing it for the whole company via Admin Console, the Add-on doesn't work and gives the following error unknown function. So I want to know what am I missing that is preventing this Add-on from working.
So after like 5 hours of not understanding what's going and not being able to find the solution. I figured it out. In the spreadsheet I had to go to Add-Ons -> Manage Add-Ons and on the Add-On I made there were the 3 vertical dots (options) and right clicking reveals a panel that says "Use in this document". Though a minor inconvenience - every time someone in the org creates a new spreadsheet and wants to use functions from the plug-in, they will have to do just that. Hope this helps.
I have multiple Apps scripts running on google classic web sites. As of today 11/5/18 when I try to access the code I get a "No scripts found" message. If I create & save a new script I can write the code, but if I leave & return the script is no longer there. This is already causing me serious problems.
Try locating your scripts on the Apps Script home page.
https://script.google.com/home
Here you will find all the scripts that you have created from your account irrespective of their location.
Hope it helps.
Here is the link to the corresponding issue on the official Issue Tracker:
Unable to view or modify Apps Scripts associated with Google Sites Classic; new scripts not properly associated with site
The workaround to access the script is to look for the script on https://script.google.com as was mentioned on the previous answer
I have been publishing scripts from spreadsheets, grabbing the url, pasting it into the insert apps script gadget dialog, and changing the "docs" to "sites" for a while now and has been very successful except for today. Did something change between GAS, Google Spreadsheet, and Google Sites that stopped this process recently?
Update 6/18/12
In response to comment:
Based on Peter's comment, the url change did affect the process. But the change is not specific to the issue posted here. All of the discussion has urls based on "sites" only, and does not discuss published urls from spreadsheets that contain "docs" which does not work with the Apps Script Gadget. The process posted in the question is not a stable process which in turn could not be reliable if there was a change. So a new "workaround" may need to be found in order to use Apps Scripts from spreadsheets as a service on Google Sites.
Really Published Spreadsheet Script Urls should work with Google Sites just as the Google Sites Scripts Urls do.
This may be related to a recent change in the URL format. Please star this open issue for updates.