Closed bitinn closed 9 years ago
Can you make this into a reproducible case? I would like to look at it when given the time, but make it easy for me and it will be sooner rather than later ;-)
I am ok with investigating this myself, I am following leads on this 2 threads:
https://github.com/ariya/phantomjs/issues/12697 https://github.com/n1k0/casperjs/issues/1068
I believe either:
webSecurityEnabled: false
to your phantomjs config.json phantom.exit
in setTimeout to discard these stdout warnings. refFrom this PR discussion I believe the issue won't be fixed on 1.9.x branch
https://github.com/ariya/phantomjs/pull/12720
Solution for fix 1 and 2 are relatively simple, if you prefer I can make a PR
PS: yet another alternative is to downgrade to phantomjs: 1.9.11
(the nodejs wrapper module) which is the last wrapper to use phantomjs 1.9.7, which doesn't have this problem (last release is 1.9.8).
Which direction would you prefer?
@bitinn From my quick readup on this problem upgrading phantomjs
to 2.x
should solve the problem. The only reason I haven't is because of lack of official Linux release, so if you're on a non Linux platform, I would suggest upgrading.
As for a fix for this release, I should be able to supress the error from within Penthouse
. If you solve it before me, good, otherwise will look into this weekend.
Cheers
Should be resolved now - please reopen if you still see issues.
The solution implemented only suppresses errors thrown on exit, but there are other types of errors we also don't want, like:
Unsafe JavaScript attempt to access frame with..
I'l look into how to handle this properly.
I sometimes see these lines in the output css when running penthouse, is there any way to prevent phantomjs from messing with output?
my command look something like this: