【发布时间】:2016-04-14 12:10:51
【问题描述】:
我浏览了 Google 网站上的所有 prereqs。
在服务器上获得并安装了 SSL 证书(来自 Let's Encrypt)。
在 Google Search Console 上注册并验证了域(是的,https url)(如https://example.org)。
已将域添加到我的 API 凭据的 Domain Verification。
topic='projects/myproject/subscriptions/mytopic'
sub='projecs/myproject/subscription/mysub'
client.projects().topics().create(topic=topic, body={}).execute()
client.projects().subscriptions().create(name=sub, body={'topic': topic, 'pushConfig': {'pushEndpoint': 'https://example.org/push-handler'}})
然后我回来了:
googleapiclient.errors.HttpError: https://pubsub.googleapis.com/v1/projects/myproject/subscriptions/mysub?alt=json 返回“给定的推送端点无效(endpoint=https://example.org/push-handler)。参考@987654326 @了解更多信息。">
另外,我无法从 Google 的 Pub/Sub 开发者控制台创建订阅。当我尝试时,我收到“无法添加订阅”通知。我是这个主题和项目的完全所有者,具有读写权限。我可以毫无问题地添加拉取订阅。
关于为什么的任何想法?看来我不是only one 打这个。
【问题讨论】:
-
如何验证您的请求?
-
私钥。它在创建主题时有效,所以我知道对 Google 的身份验证工作正常。
标签: google-cloud-platform google-cloud-pubsub lets-encrypt