I'm using google scripts to deploy a web app. I've done about 5-10 in the same account. When I try and run the web app/script, I'm now getting: a "Google Drive: Page not found" in the title and the message
Sorry, unable to open the file at this time. Please check the address and try again.
I published it to run as the owner, but accessible to "Anyone, even anonymous".
I then tried creating a new small project with a doGet()
method that returns a small static web page, with the same result.
Code.gs:
function doGet(e) { return HtmlService.createHtmlOutputFromFile('Test'); }
Test.html:
<!DOCTYPE html> <html> <head> <base target="_top"> </head> <body> This is a test </body> </html>
I tried publishing the same spreadsheet/code above in my personal account and it works fine. Since I already have some web apps deployed with the account that's having the error, is there a quota on the number of web apps per account?
I tried a different browser, a different account, re-publishing, and logging out and back in. Same error message. The "Test your web app with the latest code" link also fails. I can directly call the doGet()
method in the IDE and it works fine, and I see output in the logs.
I don't see anything in the logs for the page not found error, which is what I expect with the page not found - not even getting to code execution, thus no logs.
Wait a few moments: If you see a “Temporary Error (502)” message when you try to open files in Drive, it means that your documents are temporarily unavailable. This issue is usually temporary, so wait a bit and try to open them again.
Restart Google Drive. You can try to quit and restart the Google Drive app on your Android phone if there is nothing wrong with your internet connection. Or you can reset your Google Chrome browser's settings.
In case you are the owner of the file that is having this issue, what you can do is simply make a copy of the file on your Google Drive and then share the new link with the users. The problem shouldn't be there for a while until the quota limit is reached again.
Check your internet connection. Next, check the system requirements and supported browsers. Make sure you are using supported versions of the browser and operating system if you are unable to open files in Google Drive. 3. In this step, clear your browser cache and then try to load your Google Drive files again.
I think you are logged in with two gmail account: That is why (/u/1,/u/0) may have been appended to script address (may be a bug).
So what you have to do is remove /u/0 or whatever is appended.
ForExample:
https://script.google.com/macros/u/1/s/ffffsdds/exec becomes https://script.google.com/macros/s/ffffsdds/exec
I have several Gmail accounts open at once and kept having this problem. I found it helped to close the Drive window, log out of the email account related to it, and then log back into the Gmail account and open Drive again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With