superagent icon indicating copy to clipboard operation
superagent copied to clipboard

"double callback bug" is logged when http2 error occur

Open asomethings opened this issue 4 years ago • 0 comments

If I request an non-http2 server with http2 superagent throws error with superagent: double callback bug. Wondering if this is an expected behavior for http2?

Sample code

superagent
  .get('https://github.com')
  .http2()
  .then(console.log)
  .catch(console.log)

asomethings avatar Oct 06 '20 01:10 asomethings