Invalid endpoint error creating subscription to Pub / Sub

I looked through all the prereqs on google.

  • Received and installed an SSL certificate (from Let Encrypt) on the server.

  • Register and verify the domain (yes, https url) in the Google Search Console (for example, https://example.org ).

  • Added to the domain to my domain verification API account .

topic = 'projects / MyProject / subscriptions / mytopic

sub = 'projects on / MyProject / subscription / MySub

client.projects (). themes (). create (topic = topic, body = {}). execute ()

client.projects (). subscriptions (in Russian) ::::: https://example.org/push-handler '}})

And I'll be back:

googleapiclient.errors.HttpError: https://pubsub.googleapis.com/v1/projects/myproject/subscriptions/mysub?alt=json returns "Invalid click endpoint (endpoint = https://example.org/push-handler ) . For more information, see https://cloud.google.com/pubsub/subscriber#create . " >

In addition, I cannot create subscriptions from the Google Pub / Sub Developer Console. When I try, I get the notification "Subscription could not be added." I am the full owner of this topic and project with read and write permissions. I can add traction subscriptions without a problem.

Any ideas on why? It seems like I'm not the only one pressing this.

+4

Source: https://habr.com/ru/post/1623606/


All Articles