NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Bug - can't find handleData / phantomjs #60

Closed paxinos closed 6 years ago

paxinos commented 6 years ago

Greetings,

I've installed node-red-contrib-phantomjs and am having problems with the demo flow... seems handleData can not be found...

22 Sep 17:36:52 - [info] stderr:Console: ReferenceError: Can't find variable: handleData (from line # in "")

The resulting PNG is the right size, but it is black. Accessing /chart renders a chart.

One thing I do plan on changing is supporting URL to be passed in a msg...

JpEncausse commented 6 years ago

Hum,

paxinos commented 6 years ago

any suggestions on what I can look for regarding the missing 'handleData' ? I don't see it referenced in any of the files.

Thanks.

JpEncausse commented 6 years ago

It seems to work for me with the demo flow

The handleData() is defined in the D3 Bar Chart node it is called from phantomjs-script-snapshot.js but is not required.