0
我正在關注Google Cloud Platform文檔中關於Object Change Notifications的示例。Google雲端平臺上的對象更改通知
存儲桶由一個應用程序(application-1
)擁有,並且應接收通知的App Engine應用程序是一個單獨的應用程序(application-2
)。這兩個應用程序的服務帳戶都是存儲桶的存儲對象管理員。
但是,我無法創建通知通道來觀看存儲桶。當我嘗試使用gsutil
這樣做,會返回一個錯誤:
gsutil notification watchbucket https://application-2.appspot.com gs://bucket
Watching bucket gs://bucket/ with application URL https://application-2.appspot.com ...
ServiceException: 401 Unauthorized WebHook callback channel: https://appication-2.appspot.com
我已經證實,域(https://application-2.appspot.com
)使用Search Console驗證過程驗證和配置爲這兩個項目一個網絡掛接通知域。