javascript - PhantomJS stops screen capture on js error, but page renders fine in browser -


how can make phantomjs continue screen capture after encountering js error on page? page renders correctly in browsers, not in phantomjs screen capture.

1 page works, 1 page fails:

phantomjs fails capture graph on page: https://www.graf.ly/user_graphs/510.

phantomjs successful on page: https://www.graf.ly/user_graphs/505.

error:

it seems phantomjs encounters errors on page , stops capturing. run rasterize.js script phantomjs's tutorial debug mode on error on failed page:

typeerror: 'undefined' not function (evaluating 'function(e){this.visible=true;this.update(e)}.bind(this)')    https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.4.6/rickshaw.min.js:2   https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.4.6/rickshaw.min.js:2   https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.4.6/rickshaw.min.js:1 in klass   https://www.graf.ly/graph_templates/55/graph.js:278   https://www.graf.ly/graph_templates/55/graph.js:11   https://www.graf.ly/graph_templates/55/index.html?dataset=1208&options=2140:177 in ready   https://cdnjs.cloudflare.com/ajax/libs/queue-async/1.0.7/queue.min.js:1 in o   https://cdnjs.cloudflare.com/ajax/libs/queue-async/1.0.7/queue.min.js:1   https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.2/d3.min.js:1   https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.2/d3.min.js:1 in t   https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.2/d3.min.js:1 in u 

this exception means phantomjs' js engine not support bind function. try include (directly in html page or through phantomjs script using includejs or injectjs functions) polyfill the 1 on mdn or es5-shim, etc...


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -