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

Adam McCrory picture Adam McCrory · May 4, 2017 · Viewed 7.5k times · Source

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

Answer

Kamal Aboul-Hosn picture Kamal Aboul-Hosn · May 4, 2017

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.