I am following the tutorial here (https://cloud.google.com/ai-platform/training/docs/training-jobs#python_1) and using Python to deploy a machine learning model to Google cloud for training. However, I got HttpError 403: "Permission denied on resource project my_project." The reason for the error is "CONSUMER_INVALID." Specifically, the returned metadata shows that the consumer is "projects/my_project," and the service is "ml.googleapis.com".
I went to the AI platform and my project is indeed there. The API I am requesting to use is enabled for the project and the environment variable GOOGLE_APPLICATION_CREDENTIALS has been set correctly. I am wondering how to fix the problem. Thanks!