Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive Page Not Found - Sorry, unable to open the file at this time

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.

like image 292
Douglas Russell Avatar asked Oct 31 '17 22:10

Douglas Russell


People also ask

Why does Google Drive say sorry unable to open the file at this time?

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.

How do I fix Google Drive file not found?

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.

How do you fix sorry you can't view or download this file at this time too many users have viewed or downloaded this file recently?

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.

Why Drive file is not opening?

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.


2 Answers

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

like image 126
imox Avatar answered Oct 05 '22 02:10

imox


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.

like image 43
Jennie Harborth Avatar answered Oct 05 '22 01:10

Jennie Harborth