Following up to quesiton! since I can't comment.
I followed @Brandon Yarbrough instruction everything is configured the problem is I am not receiving anything script saying
Listening for messages on projects/[project_id]/subscriptions/projects/[project_id]/subscriptions/subtestbucketthhh
Asked
Active
Viewed 137 times
0

Christopher
- 895
- 6
- 15

syed irfan
- 505
- 4
- 8
-
@Brandon Yarbrough – syed irfan Jul 10 '19 at 05:42
-
Could you please verify the name of the topic your notifications are being published to? You can run `gsutil notification list [bucket_url]` to show the Cloud Pub/Sub topic name. Then verify that your subscription is attached to the topic by running `gcloud pubsub topics list-subscriptions [topic_name]`. It looks like you might be using an incorrect subscription name in your script: it should be in the format `projects/[project_id]/subscriptions/[subscription_name]`. – Lauren Jul 16 '19 at 19:35
-
Yes , Topic_asr – syed irfan Jul 17 '19 at 12:12
-
Please check whether messages were published to your topic using the `pubsub.googleapis.com/topic/send_request_count` Stackdriver metric: https://cloud.google.com/pubsub/docs/monitoring If not, then something is misconfigured in between GCS and Pub/Sub. – Lauren Jul 17 '19 at 17:58
-
If there are messages published, check the `pubsub.googleapis.com/subscription/num_undelivered_messages` Stackdriver metric to make sure your subscription is able to access those messages. If there are no undelivered messages present, your subscription is not attached to the correct topic. If there are messages present, your client is probably not attached to the correct subscription or is not using the correct delivery type (pull or push delivery type). – Lauren Jul 17 '19 at 17:58