testcafe-hammerhead: http2 connection resets not handled
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:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 19 (2 by maintainers)
Commits related to this issue
- fix `http2 connection resets not handled` (close #2653) — committed to LavrovArtem/testcafe-hammerhead by LavrovArtem 3 years ago
I can confirm that with 1.15.2-rc.1 the issue does not occur anymore! Thanks! Looking forward to 1.15.2
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 π
I was able to create a reproducible case, here you go:
I believe the problem comes from
navigateTo
testcaferc.record.json