Google Cloud Pub / Sub Error - INVALID ARGUMENT in a Push Subscription

I created a theme and then tried to create a subscription with the delivery type "Push". When I use the domain https://www.omnea.com/push/google-handler (the link does not exist), it works. However, when I use the url https://apidev2.omnea.org/push/google-handler , it throws an INVALID_ARGUMENT error.

Both have the same certification authority. The only difference I see here is the domain and subdomain.

Is there any other reason I get this error?

+14
google-cloud-platform google-cloud-pubsub
source share
2 answers

My times are too hard to understand what is happening.

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

+32
source share

Just a small addition to @ IcanDivideBy0 answer - you need to add BOTH to the Google search console and to the list of allowed domains in your project (in the Google cloud console). I added the domain to the search console, and it did not work even then, while I had no reason to add it to my GCP console

0
source share

All Articles