You are on page 1of 2
how to ignore errors in phantomjs More jobs Ea uml Role a | have a web crawler and | use phantomis to parse pages, | want to get the himl, but | always get this type of errors inthe output before the him code nei//stat icons. cow$s/togte $2203.10, 04:195 Typerors "andefinea” 1s note function (evaluating ‘SC [ploceoluer|"} placetoleertobe1Q") show can stop that vost phonons Tinethy Smith 1 Answer “The easiest way sto add an error handler to phantom onerror or webpage.onerror. These callbacks are invoked whan there is @ JavaScript execution error (in the page orn your scr) eee krror = RanetdonGwts, 868) 1 Tar nsgstack = ['EMOW' + ast]; WF (lee ak Graces length) TSaStOCk push TRACE" Trace soreangfanetion(©) sgStackspan(" =)" .flle 4 1: "+ tolsne » (Qafunetion 7° (An function S rnet ay user2661048 Met ot 09 Hy emt bo 11 eos eror(gsace oie Artom 3.

You might also like