Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"pubsub error INVALID_ARGUMENT" when creating a subscription to URL endpoint

Created a test topic on GC pubsub and can create pull subscriptions no problem but as soon as I try to create a URL endpoint subscription I get a "pubsub error INVALID_ARGUMENT"

Params Subscription Name: testingsub Endpoint URL: https://requestb.in/1iztlqt1

Any ideas what I am doing wrong

like image 827
Adam McCrory Avatar asked May 04 '17 17:05

Adam McCrory


3 Answers

If you look at the message returned with this error, you should get some more details. A common cause of this issue is that you haven't registered the endpoint. You need to verify that you own the domain in order to register it as a push endpoint.

like image 74
Kamal Aboul-Hosn Avatar answered Oct 02 '22 12:10

Kamal Aboul-Hosn


Make sure your domain is registered.
https://www.google.com/webmasters/verification
Easiest method in my opinion, is the html file upload.

Registering domain is not enough, you also need to add it here: https://console.cloud.google.com/apis/credentials/domainverification

like image 23
mabc21 Avatar answered Oct 02 '22 11:10

mabc21


It's an old post. But still for the people who are still facing this issue. I went through the same issue. What solved my problem:

  1. Registered my domain in console.developers.google.com by adding a TXT record like 'google-site-verification=hfjhvhjvjhvjvjvhjvjvjhvjv' in my domain registrar DNS zone panel.
  2. Instead of using http://duskylory.store as a protocol, I had to use https://duskylory.store. Apparently, they accept https as a protocol as written in pub/sub trouble shoot page.
like image 44
Mukarram Ali Avatar answered Oct 02 '22 13:10

Mukarram Ali