php - 无法在 google app engine 中为 php 应用程序配置更改对象通知

标签 php google-app-engine gsutil

当我尝试使用 gsutil 命令设置通知时出现以下错误:

gsutil 通知监视桶 https://APPLICATION-ID.appspot.com/cron gs://桶

Watching bucket gs://APPLICATION-ID.appspot.com/ with application URL https://APPLICATION-ID.appspot.com/cron ...

Watch bucket attempt failed:
  AccessDeniedException: 403 Forbidden

You attempted to watch a bucket with an application URL of:

  https://APPLICATION-ID.appspot.com/cron

which is not authorized for your project. Please ensure that you are using
Service Account authentication and that the Service Account's project is
authorized for the application URL. Notification endpoint URLs must also be
whitelisted in your Cloud Console project. To do that, the domain must also be
verified using Google Webmaster Tools. For instructions, please see:

  https://cloud.google.com/storage/docs/object-change-notification#_Authorization

AccessDeniedException: 403 Forbidden

我已按照以下网址中的所有步骤进行通知授权:

https://cloud.google.com/storage/docs/object-change-notification

但我仍然收到上述错误。我缺少哪一步?

谢谢

最佳答案

我自己解决了这个问题。我在添加域名时错过了“https://”。

谢谢

关于php - 无法在 google app engine 中为 php 应用程序配置更改对象通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40043502/

相关文章:

php - 尝试让 PHP MYSQL 查询忽略 WHERE 子句中的空变量

php - 减少 PHP 执行时间

php - 如何在 Zend Framework 中进行 Bind 和 LIKE

gsutil - 加速 s3 和 gs 之间的 gsutil rsync

shell - 将文件从存储桶拆分并复制到另一个存储桶,无需在本地下载

php - 以日期时间格式插入当前日期 mySQL

java - 应用程序引擎电子邮件。它说已发送但我没有收到

google-app-engine - blobstore.ParseUpload 在开发服务器和部署中的行为不同

google-app-engine - Google Speech API v1beta1 很慢?

google-cloud-storage - gsutil rsync 与 gzip 压缩