title: Reading http/2 push stream fails with error -505
body: <p>I'm trying to read an http/2 push stream, but the code below fails with an error. When I use the same URL in Chrome browser, I receive the 'heartbeat' being generated by the stream server and can see data coming in as well. Any pointers? My goal is simply to read all the JSON push responses being generated by the server.</p>
  
  <pre><code>Error:
  { Error [ERR_HTTP2_ERROR]: Protocol error
      at Http2Session.onSessionInternalError [as error] (internal/http2/core.js:637:26)
    code: 'ERR_HTTP2_ERROR',
    name: 'Error [ERR_HTTP2_ERROR]',
    errno: -505 }
  </code></pre>
  
  <p>Node.JS Code:</p>
  
  <pre><code>const http2 = require('http2');
  const client = http2.connect('http://api.service.com/absolute/path/subscribe?api_key={key}');
  
  const req = client.request();
  req.setEncoding('utf8');
  
  req.on('response', (headers, flags) =&gt; {
    console.log(headers);
  });
  
  let data = '';
  req.on('data', (d) =&gt; data += d);
  req.on('end', () =&gt; {
      console.log('end');
      console.log(data); 
      client.destroy()
  });
  req.end();
  </code></pre>
  
  <p>Side Note: I'm new to Node.js, and http/2 push stream is a new topic for me as well, so consider me a beginner, struggling with this.</p>