推送订阅中的INVALID

推送订阅中的INVALID

本文介绍了Google Cloud Pub / Sub - 推送订阅中的INVALID ARGUMENT错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个话题&然后尝试使用推送传送类型创建订阅。当我使用域名,它会抛出INVALID_ARGUMENT错误。

两者都具有相同的证书颁发机构。我在这里看到的唯一区别是域&子域。

是否有其他原因导致我收到此错误?

解决方案


您需要在API控制台中将您的子域添加为已验证的域:


I created a topic & then tried to create a Subscription with "Push" delivery type. When I use the domain https://www.omnea.com/push/google-handler (the link doesn't exist), it works. However, when I use the url https://apidev2.omnea.org/push/google-handler, it throws INVALID_ARGUMENT error.

Both have the same certificate authority. The only difference I see here is the domain & sub-domain.

Is there any other reason due to which I receive this error?

解决方案

Got some hard time too figuring out what happening.

You need to add you sub domain as verified domain in the API console: https://console.cloud.google.com/apis/credentials/domainverification

这篇关于Google Cloud Pub / Sub - 推送订阅中的INVALID ARGUMENT错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 19:53