首页 > 解决方案 > Google pubsub 推送订阅“未注册”

问题描述

我想创建对端点(kubernetes 入口端点)的推送订阅,
我已关注
https://cloud.google.com/pubsub/docs/push?authuser=1&hl=fr

https://cloud.google。 com/resource-manager/docs/managing-notifications?authuser=1&hl=fr&authuser=1&visit_id=636873901965728364-1969465896&rd=1
以验证此端点使用的域。

在 Google 搜索控制台中,我看到了经过验证的域。


很遗憾

gcloud beta pubsub subscriptions create subscription2 --topic=top3 --push-endpoint=https://mydomainValidated

ERROR: Failed to create subscription [projects/xxxxx/subscriptions/subscription2]: The supplied HTTP URL is not registered in the subscription's parent project (url="https://mydomainValidated", project_id="xxxxxxxxxx").

错误:(gcloud.beta.pubsub.subscriptions.create)无法创建以下内容:[subscription2]

当我使用 nodejs API 创建订阅时也是如此。它也不能使用 GCP 接口。

提前致谢

标签: publish-subscribe

解决方案


好的 找到了!

Il API&Services > 域验证部分我使用“mydomainValidated”进行验证
实际上你应该使用“ https://mydomainValidated

希望它会有所帮助


推荐阅读