I'm trying to create an Apps Script web app for a project, but the URL it gives me always redirects and Drive says that it can't find the file.
What am I missing?
e.g. script.google.com/macros/s/id/exec
redirects to script.google.com/macros/u/1/s/id/exec
CodePudding user response:
Try doing it in incognito and log only 1 account or log out other accounts in your normal browser and only leave the one that has access to said script.
Redirecting to u/1
means that you have most likely logged in at least 2 accounts.
As what was said by a google developer:
Multi-login has never been supported in Apps Script and given the vast number of features and services provided by Apps Script, multi-login becomes pretty significant change with a lot of risks involved.
Our team plans to begin to work on multi-login support for the new Apps Script IDE and container-bound scripts in Q3 ‘21.
For Google Add-ons, google.script.run, and Web Apps, existing workarounds include:
Signing out of all accounts and using only 1 account: or Using an incognito tab to sign in