I have project A and project B in my google cloud. I have my configuration set to project A, but when I try and use my pub/sub reliant python scripts, the look for the subscription in project B, which then gives this error:
google.cloud.exceptions.NotFound: 404 projects/PROJECT_B/subscriptions/SUBSCRIPTION_NAME
I should note that I do not encounter this error on my machine, but it happens on a linux test server.
Also, running the commands
gcloud beta pubsub subscriptions list
gcloud beta pubsub topics list
List the subscriptions and topics in project A.