Reputation: 11
I am facing an problem, Gcp PubSub not pushing message to my registered endpoint. Let me narrate in details the steps I have executed.
Note,
Steps:
Test Executed:
As my push ep is registered with gcp pubsub topic so asa the message is posted it must be pushed into registered endpoint, but unfortunately it not pushing any message to the registered endpoint. I am completely clueless what is the mistake.
Can any one guide me where I am doing the mistakes. Its an simple spring boot rest application, do I am making any mistake in coding or any configuration.
Upvotes: 1
Views: 1705
Reputation: 809
also faced this (burned 4 hours on it) it was something broken in the firebase subdomain Redirecting to the actual function.. just gave it the orignal URL of the functions and it just worked... nothing in the google logs not even a line..
Upvotes: 0
Reputation: 688
One reason might be that the SSL Certificate of your push endpoint might be expired. It took me half a day to figure it out. Pubsub requires a working SSL certificate.
You can look up the type of errors in Google's stack monitoring. If it is a pubsub_interal_push error then most likely it is a certificate issue.
Usually, Google doesn't accept URLs without HTTPS but in my case - I had an HTTP URL. The certificate had an issue.
Upvotes: 0
Reputation: 2871
I faced the same problem and the funny turnout was that it was my server's fail2ban
who banned google ip addresses.
Upvotes: 0
Reputation: 11
I recommend you looking in Cloud Monitoring, you can use the push metrics, which start with the name "Push Request", to figure out if your messages are being pushed to your endpoint and if your endpoint is returning errors to Pub/Sub.
Upvotes: 1