Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 为什么GCP bucket上的新文件不发送pubsub消息?_Google Cloud Platform_Google Cloud Storage_Google Cloud Pubsub - Fatal编程技术网

Google cloud platform 为什么GCP bucket上的新文件不发送pubsub消息?

Google cloud platform 为什么GCP bucket上的新文件不发送pubsub消息?,google-cloud-platform,google-cloud-storage,google-cloud-pubsub,Google Cloud Platform,Google Cloud Storage,Google Cloud Pubsub,我有一个桶,上面有一个通知: projects/_/buckets/mybucket/notificationConfigs/11 Cloud Pub/Sub topic: projects/myproject/topics/NEW_IMAGE_TOPIC Filters: Event Types: OBJECT_FINALIZE 此主题连接到指向推送端点的订阅中。当我将一个图像添加到bucket时,什么都没有发生。为了测试这个主

我有一个桶,上面有一个通知:

projects/_/buckets/mybucket/notificationConfigs/11
        Cloud Pub/Sub topic: projects/myproject/topics/NEW_IMAGE_TOPIC
        Filters:
                Event Types: OBJECT_FINALIZE
此主题连接到指向推送端点的订阅中。当我将一个图像添加到bucket时,什么都没有发生。为了测试这个主题,我发送了一些虚拟消息,并将它们拉到一个虚拟sub。这样可以。任何时候我的日志中都不会出现任何消息。应该吗?还有什么我可以查的吗?(我已经在不同的GCP项目中使用了该方法,但没有发现任何相关差异)

编辑:由此创建的通知:

gsutil notification create -f json -t NEW_IMAGE_TOPIC -e OBJECT_FINALIZE %BUCKET%

只是主题终结点的URL不正确。没有给出任何错误。

有一个列表,主要是权限,您是否正在处理它?您是如何创建此通知的?您仍然有该命令吗?添加了通知创建。@vitooh,谢谢,可能没有。大部分都被我封锁了。但是没有错误。