Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Pub/Sub - INVALID ARGUMENT error in Push subscription

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?

like image 521
Uma Ilango Avatar asked Apr 18 '17 16:04

Uma Ilango


People also ask

How do I enable Pub/Sub API in Google cloud?

To use Cloud Pub/Sub with your app, you need to create a Google Cloud Platform project that has the Pub/Sub API enabled. Create a new project in the Cloud Platform Console. In the left pane of the console, select Pub/Sub and then select Enable API.

Is Pubsub push or pull?

In a push subscription, a Pub/Sub server initiates a request to your subscriber client to deliver messages. The following image shows the workflow between a subscriber client and a push subscription.

What is the use of subscription in Google Pub/Sub service?

Google Cloud Pub/Sub provides messaging between applications. Cloud Pub/Sub is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a "topic" and other applications can subscribe to that topic to receive the messages.


1 Answers

Got some hard time too figuring out what's happening.

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

like image 155
IcanDivideBy0 Avatar answered Sep 16 '22 14:09

IcanDivideBy0