Error adding Push subscription

873 views
Skip to first unread message

Mark Reed

unread,
Jan 23, 2016, 11:41:00 AM1/23/16
to Google Cloud Pub/Sub Discussions
I've verified my domain as https://domain.com and it is listed under API Manager -> Credentials -> Domain verification. If I try to add a push subscription from the Google Developer Console I get an error "The subscription could not be added". When I try to add a push subscription from the API explorer I get the error "Invalid push endpoint given (endpoint=https://domain.com). Refer to https://cloud.google.com/pubsub/subscriber#create for more information.". I'm hosting my site on Microsoft Azure and I have a valid SSL certificate installed on the application. Do I need something special on the endpoint that I am registering? I've been fighting with this for a few days now but can't figure out what the issue is.

Marc Corliss

unread,
Jan 25, 2016, 12:17:39 PM1/25/16
to Mark Reed, Google Cloud Pub/Sub Discussions
Sorry to hear that you are having issues. Could you give me the project ID and subscription name you are trying to use so I can take a closer look? Also, we have a troubleshooting page that you might want to take a look at if you haven't already:


On Sat, Jan 23, 2016 at 11:40 AM, Mark Reed <mark....@gmail.com> wrote:
I've verified my domain as https://domain.com and it is listed under API Manager -> Credentials -> Domain verification. If I try to add a push subscription from the Google Developer Console I get an error "The subscription could not be added". When I try to add a push subscription from the API explorer I get the error "Invalid push endpoint given (endpoint=https://domain.com). Refer to https://cloud.google.com/pubsub/subscriber#create for more information.". I'm hosting my site on Microsoft Azure and I have a valid SSL certificate installed on the application. Do I need something special on the endpoint that I am registering? I've been fighting with this for a few days now but can't figure out what the issue is.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/4630e1cf-2237-4710-829a-1b9d953a30ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Reed

unread,
Jan 25, 2016, 1:00:46 PM1/25/16
to Marc Corliss, Google Cloud Pub/Sub Discussions
Marc,

Thanks for the prompt response I will checkout the troubleshooting guide. Below are the requested details.

Project ID: keystone-1189
Topic: projects/keystone-1189/topics/messages

I'm trying to use a url at the following domain: https://keystonemovemanagement.com/

Thanks,
Mark

Marc Corliss

unread,
Jan 25, 2016, 3:12:05 PM1/25/16
to Mark Reed, Google Cloud Pub/Sub Discussions
This subscription exists although it is a pull subscription. When did you last try creating this subscription or modifying it to make it a push subscription? I can't find a log of this event in cloud pubsub. Could you retry this? One thing to make sure of is that the endpoint registered in the Google Developer Console (API Manager -> Credentials -> Domain verification) is an exact prefix of the cloud pubsub push endpoint you are trying to use. Thanks.

Mark Reed

unread,
Jan 25, 2016, 3:26:44 PM1/25/16
to Marc Corliss, Google Cloud Pub/Sub Discussions

I tried creating a push subscription several times but it doesn't work. I'm using the domain I sent in my previous email and it has been verified and shows up in my dashboard. I have tried creating a subscription called push many times but I just get a generic error.

I have no idea how to troubleshoot this or what to try next. I'd like to use the domain I provided with /mail/push as my push URL.

Thanks,
Mark

Marc Corliss

unread,
Jan 25, 2016, 4:13:16 PM1/25/16
to Mark Reed, Google Cloud Pub/Sub Discussions
OK, I see the following error for your subscription:

Invalid push endpoint given (endpoint=https://keystoneweb.azurewebsites.net/mail/push)

This address is not a prefix of the registered domain address you included in the previous email: https://keystonemovemanagement.com/. Can you try registering https://keystoneweb.azurewebsites.net/ in the Google Developer Console and retry creating the subscription?

Thanks,
Marc

Mark Reed

unread,
Jan 25, 2016, 5:08:56 PM1/25/16
to Marc Corliss, Google Cloud Pub/Sub Discussions
Marc,

Both domains are registered in the Google Developer Console and I get the same error for each of them. I have tried them both again just before I sent this email and I get the same error for both.

Thanks,
Mark

Takashi Matsuo

unread,
Jan 27, 2016, 5:24:59 PM1/27/16
to Mark Reed, Marc Corliss, Google Cloud Pub/Sub Discussions

Hi Mark,

Sorry for the frustrations. Unfortunately I still could not reproduce your problem.

Today I just created a new certificate with letsencrypt tool and it works fine for me. I could create subscriptions with a pushconfig to my domain with all of these; API explorer, gcloud alpha command, and Developers Console Pub/Sub UI.

Can you post (or share with me) the screenshot of showing those domains are registered on the Developers Console?
Do you use the same account for registering the domain, and calling the API?

Thanks,

-- Takashi


For more options, visit https://groups.google.com/d/optout.



--
Takashi Matsuo | Developers Programs Engineer | tma...@google.com
Reply all
Reply to author
Forward
0 new messages