title: Invalid push endpoint error during Google Pub/Sub subscription creation
body: <p>I've gone through all the <a href="https://cloud.google.com/pubsub/prereqs#register" rel="noreferrer">prereqs</a> on Google's site.</p>
  
  <ol>
  <li><p>Got and installed a SSL cert (from Let's Encrypt) on server.</p></li>
  <li><p>Registered and verified the domain (yes, the https url) on Google Search Console (like <a href="https://example.org" rel="noreferrer">https://example.org</a>).</p></li>
  <li><p>Added to the domain to my API Credential's <a href="https://console.cloud.google.com/apis/credentials/domainverification" rel="noreferrer">Domain Verification</a>.</p></li>
  </ol>
  
  <blockquote>
    <p>topic='projects/myproject/subscriptions/mytopic'</p>
    
    <p>sub='projecs/myproject/subscription/mysub'</p>
    
    <p>client.projects().topics().create(topic=topic, body={}).execute()</p>
    
    <p>client.projects().subscriptions().create(name=sub, body={'topic': topic, 'pushConfig': {'pushEndpoint': '<a href="https://example.org/push-handler" rel="noreferrer">https://example.org/push-handler</a>'}})</p>
  </blockquote>
  
  <p>And I get back:</p>
  
  <blockquote>
    <p>googleapiclient.errors.HttpError: https://pubsub.googleapis.com/v1/projects/myproject/subscriptions/mysub?alt=json returned "Invalid push endpoint given (endpoint=<a href="https://example.org/push-handler" rel="noreferrer">https://example.org/push-handler</a>). Refer to <a href="https://cloud.google.com/pubsub/subscriber#create" rel="noreferrer">https://cloud.google.com/pubsub/subscriber#create</a> for more information."></p>
  </blockquote>
  
  <p>Also, I'm unable to create subscriptions from Google's Pub/Sub developer console. When I try, I get back a "Subscription cannot be added" notification. I am the full owner of this topic and project, with read and write permissions. I'm able to add pull subscriptions with no problem.</p>
  
  <p>Any ideas on why? It seems like I'm not the <a href="https://stackoverflow.com/questions/33790132/does-google-cloud-pub-sub-support-letsencrypt-certificates">only one</a> hitting this.</p>