未找到 Google 云端硬盘页面 - 抱歉,目前无法打开该文件 [英] Google Drive Page Not Found - Sorry, unable to open the file at this time

查看:40
本文介绍了未找到 Google 云端硬盘页面 - 抱歉,目前无法打开该文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用谷歌脚本来部署网络应用程序.我在同一个帐户中完成了大约 5-10 个.当我尝试运行网络应用程序/脚本时,我现在得到:标题和消息中的Google Drive:页面未找到"

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".

然后我尝试使用 doGet() 方法创建一个新的小项目,该方法返回一个小的静态网页,结果相同.

I then tried creating a new small project with a doGet() method that returns a small static web page, with the same result.

代码.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>

我尝试在我的个人帐户中发布上述相同的电子表格/代码,效果很好.由于我已经使用出现错误的帐户部署了一些 Web 应用程序,因此每个帐户的 Web 应用程序数量是否有配额?

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?

我尝试了不同的浏览器、不同的帐户、重新发布、退出并重新登录.同样的错误消息.使用最新代码测试您的网络应用"链接也失败.我可以在 IDE 中直接调用 doGet() 方法并且它工作正常,并且我在日志中看到了输出.

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.

推荐答案

我想你是用两个 gmail 账户登录的:这就是为什么 (/u/1,/u/0) 可能被附加到脚本地址 (可能是个bug).

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).

所以你需要做的是删除/u/0 或任何附加的内容.

So what you have to do is remove /u/0 or whatever is appended.

例如:

https://script.google.com/macros/u/1/s/ffffsdds/exec 变成 https://script.google.com/macros/s/ffffsdds/exec

这篇关于未找到 Google 云端硬盘页面 - 抱歉,目前无法打开该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆