question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

http2 connection resets not handled

See original GitHub issue

What is your Scenario?

Using hammerhead with testcafe fails randomly with ERR_HTTP2_GOAWAY_SESSION errors if host supports http2. See https://github.com/DevExpress/testcafe/issues/6234 Before http2 support was added we did not see any network errors like this. So I suspect it is related to the new http2 integration.

What is the Current behavior?

Unhandled promise rejections if ERR_HTTP2_GOAWAY_SESSION was received. http2 session is not recreated and connection reset is not handled (unlike http1, see https://github.com/DevExpress/testcafe-hammerhead/blob/master/src/request-pipeline/connection-reset-guard.ts)

What is the Expected behavior?

Establish new connection to ensure further requests are working.

What is your public web site URL?

Your website URL (or attach your complete example):

Your complete app code (or attach your test files):
 
Screenshots:

Steps to Reproduce:

Running many testcafe tests against a server which handles http1 and http2 requests.

Your Environment details:

  • node.js version:
  • browser name and version:
  • platform and version:
  • other:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:19

github_iconTop GitHub Comments

5reactions
sam-yhcommented, Aug 3, 2021

We will include this fix in the next minor release - v1.15.2. In the meantime, you can use v1.15.2-rc.1, which contains the fix.

I can confirm that with 1.15.2-rc.1 the issue does not occur anymore! Thanks! Looking forward to 1.15.2

3reactions
aeneasrcommented, Jul 28, 2021

If a release for this would be possible, I would highly appreciate it! This has been blocking us for quite some time 😃 If not, we’ll just wait until someone with write access has time 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection failures with parallel HTTP/2 (TCP reset) #5611
I was experimenting with transferring lots of files over HTTP/2 using nginx and curl, and ran into some of the following errors: curl:...
Read more >
HTTP2 GET requests fail with ERR_CONNECTION_RESET
I suspect that Chromium cancels HTTP connections with `ERR_CONNECTION_RESET` when a DNS TTL expires. On a website I have where 1000 files of ......
Read more >
How to Fix the ERR_CONNECTION_RESET Error in 7 Ways
ERR_CONNECTION_RESET happens when the browser fails to establish a connection with the destination site. Read to find out 7 ways to fix it....
Read more >
How to Fix the "ERR_CONNECTION_RESET" Error (5 Ways)
Learn how to fix the "ERR_CONNECTION_RESET" error code that displays in Google Chrome because there was a failed connection.
Read more >
Why Turning on HTTP/2 Was a Mistake - Lucidchart
Another (and perhaps better) option is to change the application so that it can handle traffic from a load balancer that accepts HTTP/2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found