ajam / banquo

A node.js screenshot service.
MIT License
17 stars 5 forks source link

Phantom console msg: Unable to post message to http://http. Recipient has origin http://http://111.93.41.194:8888. #5

Open dsamit opened 8 years ago

dsamit commented 8 years ago

Hi, I am Having issue with connecting a webpage and taking screenshot of selected target element.

I am using below options for connection.

var opts = { mode: 'save', url: '111.93.41.194:8888/?eid=593&mid=408&uid=MTU=&sid=75dk5mau78qkcpjacio2fqhpv2', viewport_width: 1440, delay: 10000, selector: '#articleHighlightList-0', scrape: false, out_file:'export files/new.png' };

This is what the issue i am getting.. vdfha

Please help me out.

abenrob commented 8 years ago

When I try to view the url, I get a modal telling me the session is not found, and am then redirected to http://ds09.projectstatus.co.uk/ideascast/

mhkeller commented 8 years ago

This looks like an issue with the web page you're trying to access as opposed to phantom or banquo. @dsamit can you give us any more details on what you're trying to capture.

dsamit commented 8 years ago

This May be an issue with the web page. Yes, this web page checks for session availability and the above URL will not have session.

But the problem is the URL which i tried to that has session but then also it was not able to take screenshot.

If you can give a specific timing when you can be available then i can give you the working URL with valid session. With this it will be easy for you to track down the issue.

abenrob commented 8 years ago

@dsamit Just noticing you are using the selector that is defined in the example: '#articleHighlightList-0'. Im guessing your page does not have an element with the same ID as that; perhaps that is the issue?

dsamit commented 8 years ago

Yes. Usually i didn't have this selector in my page. But when this was not working, i thought to change my selector id with articleHighlightList-0 and hence i did this. But then also it was unable to take screenshot of my webpage.

mhkeller commented 8 years ago

Do you have a url for what you want to screenshot that is stable — that is to say, it doesn't change based on a session id or cookie. If so, paste it here and we can see the next step for you.