title: FHIR Subscription not working in hapi-fhir
body: <p>I'm using this <a href="https://github.com/hapifhir/hapi-fhir-jpaserver-starter" rel="noreferrer">hapi-fhir v4.2.0 server with jpa</a> and it's working just fine. I have added a few patients and I'm able to GET/POST requests to my hapi-fhir localhost environment.</p>
  
  <p>I'm also able to create a subscription using this URL: <a href="http://localhost:8080/hapi-fhir-jpaserver/fhir/Subscription" rel="noreferrer">http://localhost:8080/hapi-fhir-jpaserver/fhir/Subscription</a> with this body:</p>
  
  <pre><code>{
    "resourceType": "Subscription",
    "criteria": "Patient",
    "reason": "Give me the patient",
    "end": "2021-01-01T00:00:00Z",
    "status": "requested",
    "channel": {
      "type": "rest-hook",
      "endpoint": "http://localhost:1337",
      "payload": "application/json"
    }
  }
  </code></pre>
  
  <p>Whenever I made a POST or PUT to a <code>Patient</code>, the subscription should be triggered and send a POST request to <code>http://localhost:1337</code> but nothing happens.</p>
  
  <p>What I have tried:</p>
  
  <ol>
  <li>Changing <code>requested</code> to <code>active</code></li>
  <li>Changing criteria from <code>Patient</code> to <code>Patient?name=John</code></li>
  <li>Removing <code>payload</code> argument</li>
  <li>Reading the <a href="https://www.hl7.org/fhir/subscription.html" rel="noreferrer">documentation</a></li>
  <li>Changing to <code>application/fhir+json</code></li>
  </ol>
  
  <p>And still not working :( what I'm missing here guys?</p>
  
  <p>Edit: My backend is a simple nodejs running with <code>morgan</code>, so it will log every POST/GET/PUT attempt in the console.</p>