-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot call write after a stream was destroyed" on ECS #120
Comments
+1 |
+1 |
You can work around this by setting the agent endpoint to use UDP instead of TCP. Example env variable
|
+1 also seeing this occure |
+1 same here |
Awesome! Thanks for the quick fix! @markkuhn Can we expect a new release v2.0.6 soon as this is a blocking issue in our team after we upgraded to node 16. |
Hi @davidweimapbox . We will be releasing v2.0.6 in a day or two! |
@markkuhn Cool! thanks for confirm! |
Package has been published. Thank you for the report @PascalPflaum ! |
I noticed many messages like the following on a production ECS system, after Upgrading from node 14 to node 16.15.0
Roundabout 1/3 of all writes fail with this message.
{ "message": "Cannot call write after a stream was destroyed", "name": "Error", "stack": "Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed\n at new NodeError (node:internal/errors:372:5)\n at _write (node:internal/streams/writable:321:11)\n at Socket.Writable.write (node:internal/streams/writable:334:10)\n at /thingregistry/node_modules/aws-embedded-metrics/lib/sinks/connections/TcpClient.js:58:56\n at new Promise (<anonymous>)\n at TcpClient.<anonymous> (/thingregistry/node_modules/aws-embedded-metrics/lib/sinks/connections/TcpClient.js:53:19)\n at Generator.next (<anonymous>)\n at fulfilled (/thingregistry/node_modules/aws-embedded-metrics/lib/sinks/connections/TcpClient.js:19:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)", "code": "ERR_STREAM_DESTROYED" }
I could not find any obvious issue in the code.
The text was updated successfully, but these errors were encountered: