publish-subscribe - 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 接口。
提前致谢
解决方案
好的 找到了!
Il API&Services > 域验证部分我使用“mydomainValidated”进行验证
实际上你应该使用“ https://mydomainValidated ”
希望它会有所帮助
推荐阅读
- java - 当 Windows 资源管理器找到它时,Chrome 不会为 json 文件找到一个长的本地文件路径
- javascript - 提交成功后jquery清除表单
- oauth-2.0 - 为什么使用 jhipster oauth2 有状态,以及如何实现?
- spring-boot - 在 Wildfly 中部署的 Spring Boot 应用程序“无法实例化 WebApplicationInitializer 类”
- c# - unity c# 使用 .text 后隐藏文本
- android - Ionic 4 - 如何在 Web 浏览器中打开 URL 而不是 Android App 上的应用程序中的 webview?
- javascript - 将发布请求发送到在 ngrok 上运行的应用程序时出现 502 错误
- ruby-on-rails - Rails 验证不是文本字段的数字错误
- python - I want to match columns in two different excel files using python
- c# - 错误请求 400 POST WCF 服务文本/XML (C#)