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

Correct request, but server hangs and eventually times out

Open michaelshmitty opened this issue 13 years ago • 0 comments

Request: http://localhost:2308/pie?data=0,1,2,3 Node.js version: 0.4.7 JSdom version: 0.2.0

Page keeps loading, stays blank. Eventually times out and shows a blank page. Wrong syntax url does show the usage message. I've tried to trace the issue as far as I could. The last thing that appears on the console is the "Checkpoint" message in the code below. Then execution hangs. Problem is somewhere around line 39 I think. It never even gets to the console.log('Generating ' + chartType + ' chart'); line somewhere down.

  // Load scripts
  jsdom.jQueryify(window, function() {
    script.src = 'file://' + __dirname + '/highcharts/highcharts.src.js';
    console.log('Checkpoint');
    script.onload = function() {
      if (this.readyState === 'complete') {
        fn(window);
      }
    }
  });

michaelshmitty avatar May 12 '11 09:05 michaelshmitty