I have a simple python script that uses Google pubsub to detect new files in the google cloud storage. The script simply adds new messages to a queue where another thread proces
I got stuck 1 hour on this problem, so this is how I fixed my problem :
The GOOGLE_APPLICATION_CREDENTIALS environment variable was setup to a different service account, who wasn't on the right project
project_id = "my_project_sandbox"
And
my_project.json (service account used by project)
{
"type": "service_account",
"project_id": "my_project_prod",
"private_key_id": "---",
"private_key": "---",
...
}