Skip to content
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

Stuck on "Analysing data" #466

Open
EmericW opened this issue Jan 23, 2024 · 3 comments
Open

Stuck on "Analysing data" #466

EmericW opened this issue Jan 23, 2024 · 3 comments

Comments

@EmericW
Copy link

EmericW commented Jan 23, 2024

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
@RafaelGSS
Copy link
Contributor

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

@EmericW
Copy link
Author

EmericW commented Jan 24, 2024

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);

@RafaelGSS
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants