Get access denied using project owner service account credentials

Solution 1:

you might want to take a look at this.

I think your issue is cause by how the credential file is passed around.

The client library can determine your credentials implicitly when you set the environment variable "GOOGLE_APPLICATION_CREDENTIALS" to your .json file.

Here is an example on how to test the credentials