-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Output to /dev/stdout not working #12780
Comments
I'm having the same problem with phantom 1.9.8. The following code is working on Mac OS X but not on linux (the output is empty): page.open(address, function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit(1);
} else {
window.setTimeout(function () {
page.render('/dev/stdout', { format: 'pdf' });
phantom.exit();
}, 200);
}
}); |
I think you should use
|
Thanks for your comment, but it seems it makes no difference. Anyway, both on Linux and Mac OS X /dev/stdout is a symlink... |
+1, works locally on WIndows, fails online on AWS. |
+1, faced with same problem on Ubuntu 14.04.3 LTS, on Mac OS X works fine. |
Any updates to this? Still seems to be failing. CentOS 6.7 here. |
Facing the same issue on Ubuntu 16.04 |
Did not work for me also in windows 7, node 6.9.1, and phantomjs-prebuilt 2.1.13. |
This is still broken for me on Digital Ocean Ubuntu 16.04, works fine on my local machine (OSX El Cap) |
For anyone who finds this later, you may have had the same issue as me:
It turns out that using the |
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
Despite #10973 being closed, and the docs saying this works, I can't make this work. I'm running 1.9.8 on Linux. While the unit tests are linked to that ticket, they don't actually contain any tests for stdout.
These scripts should produce the same result:
Call this one as
phantomjs script2.js > g2.png
but the second one produces an empty file. Enabling debug mode produces identical output for both scripts. To avoid content issues, the page these scripts loads does not contain any javascript, just a simple HTML4 doc with a text body.
Have I missed something?
The text was updated successfully, but these errors were encountered: