Skip to content

http2: emit ERR_HTTP2_INVALID_SESSION async instead of throwing synchronously #6923

http2: emit ERR_HTTP2_INVALID_SESSION async instead of throwing synchronously

http2: emit ERR_HTTP2_INVALID_SESSION async instead of throwing synchronously #6923

Re-run triggered May 19, 2026 04:28
Status Failure
Total duration 45m 5s
Artifacts 1

test-shared.yml

on: pull_request
Build slim tarball
1m 38s
Build slim tarball
aarch64-linux: Cache V8 build
24s
aarch64-linux: Cache V8 build
Matrix: build
Matrix: build-openssl
Fit to window
Zoom out
Zoom in

Annotations

20 errors
aarch64-linux: with shared openssl-3.5.5
Process completed with exit code 2.
aarch64-linux: with shared openssl-3.5.5: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-linux: with shared openssl-1.1.1w
Process completed with exit code 2.
aarch64-linux: with shared openssl-1.1.1w: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-linux: with shared openssl-4.0.0
Process completed with exit code 2.
aarch64-linux: with shared openssl-4.0.0: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-linux: with shared boringssl-0.20260413.0
Process completed with exit code 2.
aarch64-linux: with shared boringssl-0.20260413.0: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-linux: with shared openssl-3.0.19
Process completed with exit code 2.
aarch64-linux: with shared openssl-3.0.19: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-linux: with shared openssl-3.6.1
Process completed with exit code 2.
aarch64-linux: with shared openssl-3.6.1: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
x86_64-linux: with shared libraries
Process completed with exit code 2.
x86_64-linux: with shared libraries: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /home/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
aarch64-darwin: with shared libraries
Process completed with exit code 2.
aarch64-darwin: with shared libraries: test/parallel/test-http2-session-close-before-stream-close.js#L0
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:216:20) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -54, code: 'ECONNRESET', syscall: 'read' } Node.js v27.0.0-pre Command: out/Release/node /Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-session-close-before-stream-close.js
aarch64-darwin: with shared libraries: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js
x86_64-darwin: with shared libraries
Process completed with exit code 2.
x86_64-darwin: with shared libraries: test/parallel/test-http2-session-close-before-stream-close.js#L0
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:216:20) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { errno: -54, code: 'ECONNRESET', syscall: 'read' } Node.js v27.0.0-pre Command: out/Release/node /Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-session-close-before-stream-close.js
x86_64-darwin: with shared libraries: test/parallel/test-http2-server-session-destroy.js#L12
--- stderr --- node:events:487 throw er; // Unhandled 'error' event ^ Error [ERR_HTTP2_STREAM_ERROR]: Stream closed with error code NGHTTP2_REFUSED_STREAM at ClientHttp2Stream._destroy (node:internal/http2/core:2481:13) at _destroy (node:internal/streams/destroy:122:10) at ClientHttp2Stream.destroy (node:internal/streams/destroy:84:5) at Writable.destroy (node:internal/streams/writable:1119:11) at Http2Stream.onStreamClose (node:internal/http2/core:609:12) at closeSession (node:internal/http2/core:1240:12) at ClientHttp2Session.destroy (node:internal/http2/core:1619:5) at Array.<anonymous> (/Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js:12:15) at Array.<anonymous> (/Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/common/index.js:509:15) at callFinishedCallbacks (node:internal/streams/writable:979:25) Emitted 'error' event on ClientHttp2Stream instance at: at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'ERR_HTTP2_STREAM_ERROR' } Node.js v27.0.0-pre Command: out/Release/node /Users/runner/work/_temp/node-v27.0.0-nightly2026-05-19f4c023726c-slim/test/parallel/test-http2-server-session-destroy.js

Artifacts

Produced during runtime
Name Size Digest
tarballs
46.1 MB
sha256:35e797615f77b88db4ff624bf1a593e0527efe9cee862901ed01612b54b22d35