This error occurs if you try to call the data store anonymously. You need to provide permission/authentication. Then you can access the data store. But here this error occurred due to the authentication issue.
For more details, refer to the below tutorial on GCP training.