node-clinic icon indicating copy to clipboard operation
node-clinic copied to clipboard

Stuck on "Analysing data"

Open EmericW opened this issue 1 year ago • 3 comments

Expected Behavior

The "Analysing data" step resolves eventually.

Current Behavior

The "Analysing data" step keeps getting stuck. Even in the simplest example

I do notice my macbook working quit hard when stuck on this step. Most of the work seems to come from a c++filt process as seen the Activity Monitor.

Steps to Reproduce (for bugs)

  1. Run my API with clinic flame -- node index.js
  2. Make some manual requests via postman
  3. Ctrl + C

This part is somewhat useless in this case since this is very specific to my machine. I was hoping to maybe get some insight into why this is happening.

I tried to reduce the complexity and create the simplest possible node.js server. The issue is still present with the following code.

var http = require('http');

http.createServer(function (req, res) {
  res.write('Hello World!'); 
  res.end(); 
}).listen(8080); 

Sample upload

clinic upload does not seem to be available 🤔 We transfer link for my .clinic directory.

Environment

  • Clinic.js version: v13.0.0
  • Node.js version: v18.12.1
  • Browser name and version: Not relevant
  • Operating system and version: macOS 10.15.7

EmericW avatar Jan 23 '24 08:01 EmericW

Try adding a process.on('SIGINT', process.exit) to your code

RafaelGSS avatar Jan 24 '24 13:01 RafaelGSS

No luck, I tried this code:

var http = require('http');

http.createServer(function (req, res) {
  res.write('Hello World!'); 
  res.end(); 
}).listen(8080); 

process.on('SIGINT', process.exit);

EmericW avatar Jan 24 '24 14:01 EmericW

I couldn't reproduce your case locally using the same environment + same nodejs/clinicjs version.

RafaelGSS avatar Jan 24 '24 18:01 RafaelGSS