Describe the bug
We've started to notice a particular warning popping up in various parts of the codebase that utilise the networking domain. Namely, the following warning:
WARN:ConnectionReverse 127.0.0.1:59070:Connection Error: Error [ERR_STREAM_WRITE_AFTER_END]: write after end
My initial thought is that this is potentially just a warning message that is being erroneously propagated up to the console output when a connection is torn down. But further investigation is required.
To Reproduce
We've noticed this occur in a few different areas:
-
When running tests/network/index.test.ts:
Details
[nix-shell:~/Documents/MatrixAI/js-polykey]$ npm test -- tests/network/index.test.ts
> @matrixai/polykey@1.0.0 test /home/josh/Documents/MatrixAI/js-polykey
> jest "tests/network/index.test.ts"
Determining test suites to run...
GLOBAL SETUP
WARN:ConnectionReverse 127.0.0.1:59070:Connection Error: Error [ERR_STREAM_WRITE_AFTER_END]: write after end
PASS tests/network/index.test.ts (8.163 s)
network index
✓ integration of forward and reverse proxy (4751 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 8.217 s
Ran all test suites matching /tests\/network\/index.test.ts/i.
GLOBAL TEARDOWN
-
dfsd
Expected behavior
No warning message to appear at all (either by resolving some underlying issue that's causing a stream to be written to, or by stopping the warning message from propagating up).
Additional context
Notify maintainers
@CMCDragonkai
Describe the bug
We've started to notice a particular warning popping up in various parts of the codebase that utilise the networking domain. Namely, the following warning:
My initial thought is that this is potentially just a warning message that is being erroneously propagated up to the console output when a connection is torn down. But further investigation is required.
To Reproduce
We've noticed this occur in a few different areas:
When running
tests/network/index.test.ts:Details
dfsd
Expected behavior
No warning message to appear at all (either by resolving some underlying issue that's causing a stream to be written to, or by stopping the warning message from propagating up).
Additional context
network/index.test.ts: https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/178#note_583511389ERRORoutputs were also being propagated up to the console output (as per the test output) but this is no longer the case in the most recent iteration ofindex.test.tsNotify maintainers
@CMCDragonkai