无法为 google 应用程序引擎中的 php 应用程序配置更改对象通知
Not able to configure change object notification for php application in google app engine
当我尝试使用 gsutil 命令设置通知时出现以下错误:
gsutil 通知 watchbucket https://APPLICATION-ID.appspot.com/cron gs://bucket
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
我已按照以下 url 中的所有步骤进行通知授权:
https://cloud.google.com/storage/docs/object-change-notification
但我仍然收到上述错误。我错过了哪一步?
谢谢
我已经自己解决了这个问题。我在添加域名时遗漏了"https://"。
谢谢
当我尝试使用 gsutil 命令设置通知时出现以下错误:
gsutil 通知 watchbucket https://APPLICATION-ID.appspot.com/cron gs://bucket
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
我已按照以下 url 中的所有步骤进行通知授权:
https://cloud.google.com/storage/docs/object-change-notification
但我仍然收到上述错误。我错过了哪一步?
谢谢
我已经自己解决了这个问题。我在添加域名时遗漏了"https://"。
谢谢