phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

phantom.js on windows retuns blank page of https://www.tumblr.com

Open skov555 opened this issue 13 years ago • 8 comments

I tested it on linux and it works correctly but I run that simple one url page https://www.tumblr.com on 3 different windows instances and they all return about:blank page, no content.

What is even more strange when I used fiddler as a proxy, trying to trace requests it works but as soon as I exit fiddler it again returns blank page.

skov555 avatar Sep 26 '13 02:09 skov555

Try changing Phantom's WebPage#settings.userAgent string, some sites/webservers are setup to ignore unrecognized browsers. Fiddler might be changing it for you.

JamesMGreene avatar Sep 26 '13 15:09 JamesMGreene

Thanks for reply, yes I did, in fact it was running with standard Firefox 22 userAgent Also running plain phantomjs on linux opens page perfectly fine, only windows version does not work for that specific case.

skov555 avatar Sep 26 '13 18:09 skov555

Got even stranger, today tested it on linux and got the same blank page response, I definetely remember yesterday it was working on linux, but today could not get it to return page. May be something in my home network, but I tried it at work and got the same blank page. Interesting that request for page is very simple. It is GET request and Headers and Agent looks perfectly normal as would any Firefox browser look so I am puzzled.

skov555 avatar Sep 27 '13 02:09 skov555

Bump, this is happening on both Linux and OSX hosts for me.

sbehrens avatar Mar 20 '14 18:03 sbehrens

Same here. Anyone found the problem?

gewooneendeveloper avatar Apr 08 '14 17:04 gewooneendeveloper

Been trying to work this out for hours, finally found the solution from a Stack Overflow post.

Tumblr apparently uses TLSv1.2 encryption while the default for phantomjs is SSLv3, to solve use either: --ssl-protocol=tlsv1 or --ssl-protocol=any

DMNh avatar Aug 13 '14 20:08 DMNh

Thanks, will try it out.

skov555 avatar Aug 13 '14 20:08 skov555

Fixed in 2.0. Please upgrade to PhantomJS 2.0.

vitallium avatar Jan 09 '16 19:01 vitallium