1
votes

I did a demo from tutorial https://developers.google.com/storage/docs/object-change-notification#_Application_Example. I also enabled the Google Cloud Storage JSON API in cloud console. But I got the result following:

$ gsutil chacl -u [email protected]:FC gs://test-mathbox

No changes to gs://test-mathbox/

$ gsutil notifyconfig watchbucket https://math-box20.appspot.com/ gs://test-mathbox

Watching bucket gs://test-mathbox/ with application URL https://math-box20.appspot.com/ ...
Failure: <HttpError 403 when requesting https://www.googleapis.com/storage/v1beta2/b/test-mathbox/o/watch?alt=json returned "Access Not Configured">.

In that, math-box20 is the id of my GAE application and test-mathbox is a bucket in Google Cloud Storage. Can you help me know why that?

1

1 Answers

0
votes

The most common reason for this error is not enabling access to the JSON API.

Could you follow the instructions here and make sure that the JSON API is enabled in your project console?