premature close error on process exit
See original GitHub issueExpected Behavior
An HTML report should be saved
Current Behavior
Doctor, bubbleprof, and flame all crash with this error:
Error: premature close
at MultiStream.onclose (/Users/contra/.nvm/versions/node/v10.6.0/lib/node_modules/clinic/node_modules/end-of-stream/index.js:47:67)
at MultiStream.emit (events.js:187:15)
at MultiStream.destroy (/Users/contra/.nvm/versions/node/v10.6.0/lib/node_modules/clinic/node_modules/multistream/index.js:65:8)
at DestroyableTransform.onClose (/Users/contra/.nvm/versions/node/v10.6.0/lib/node_modules/clinic/node_modules/multistream/index.js:111:12)
at Object.onceWrapper (events.js:273:13)
at DestroyableTransform.emit (events.js:187:15)
at /Users/contra/.nvm/versions/node/v10.6.0/lib/node_modules/clinic/node_modules/through2/through2.js:20:10
at process._tickCallback (internal/process/next_tick.js:61:11)
Steps to Reproduce (for bugs)
- Node 10.6
npm install clinic -g
clinic doctor -- node dummy-server.js
- Wait a bit, press CTRL-C
Environment
- Clinic version: Clinic v1.1.0 Doctor v3.0.3
- Node version: v10.6
- Operating system and version: MacOS Mojave Beta
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:32 (12 by maintainers)
Top Results From Across the Web
premature close error on process exit · Issue #41 - GitHub
Hi Contra, we sometimes see this error if Clinic has not collected sufficient data, so perhaps there is not enough activity in the...
Read more >How to solve: premature close at onclosenexttick in Node.js ...
This error can happen if a device (mqtt.Client from aws-iot-device-sdk-js) does not hold the correct permissions to connect and/or ...
Read more >15 Common Error Codes in Node.js and How to Fix Them
15. EPERM · Close all instances of your editor before rerunning the command (maybe some files were locked by the editor). · Clean...
Read more >Error Codes | Yarn - Package Manager
A list of Yarn's error codes with detailed explanations. ... never has been built before, or its previous build failed (returned a non-zero...
Read more >Process | Node.js v19.3.0 Documentation
It is possible to record such errors in an error log, either periodically (which is likely best for long-running application) or upon process...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same here. I’m using node v12.13.0.
Steps to repro:
transporter
tonull
inmoleculer.config.js
clinic doctor -- npm run dev
autocannon http://localhost:3000/api/greeter/hello
Ctrl + C
When it happens, I recommend you to:
.clinic
foldernode_trace.*.log
files