Those notices are printed when phantom.exit
is called. They don’t cause any trouble, but are not nice when you need a clean PhantomJS output. In your case you can suppress the notices by “asynchronizing” phantom.exit
like this:
setTimeout(function(){
phantom.exit();
}, 0);
I think the reason this is happening is because a large string is passed from the page context when phantom tries to exit.
I created a github issue for this.