Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Presence of page.onResourceReceived causes some page loads to fail #10317

Closed
Kwooda opened this issue Dec 22, 2011 · 2 comments
Closed

Presence of page.onResourceReceived causes some page loads to fail #10317

Kwooda opened this issue Dec 22, 2011 · 2 comments
Labels

Comments

@Kwooda
Copy link

Kwooda commented Dec 22, 2011

Kwo...@gmail.com commented:

Which version of PhantomJS are you using?
1.3.0 (dynamic, windows)

What steps will reproduce the problem?

  1. Define page.onResourceReceived - the body of the function can be empty or have code.
  2. Run script against a web page. Some pages work, some don't. Apparently, if there is a redirect, it fails - but only if page.onResourceReceived is defined in the script (although testing against http://google.com worked, even though it redirected to http://www.google.com).

What is the expected output? What do you see instead?
I expect the page to load successfully so my script can run. I used the netsniff.js example, and I modified it to spit out some additional info. I get "FAIL to load the address", unless I remove page.onResourceRecieved completely (just removing the body of the function still results in a FAIL).
Sample output:
url: http://localhost/Saba/Web/Social, status:Moved Temporarily, redirect:http://localhost/Saba/Web/Social;jsessionid=386C646B49ADB6880A2B4AFFF89B3E14
url: http://localhost/Saba/Web/Social, status:Moved Temporarily, redirect:http://localhost/Saba/Web/Social;jsessionid=386C646B49ADB6880A2B4AFFF89B3E14
url: http://localhost/Saba/Web/Social;jsessionid=386C646B49ADB6880A2B4AFFF89B3E14, status:OK, redirect:null
FAIL to load the address

Which operating system are you using?
Windows XP Pro

Did you use binary PhantomJS or did you compile it from source?
Binary - dynamic version

Please provide any additional information below.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #317.
🌟   2 people had starred this issue at the time of migration.

@ariya
Copy link
Owner

ariya commented Dec 1, 2012

ariya.hi...@gmail.com commented:

Can you try again with the latest stable version (1.7)?

@ghost ghost removed old.Priority-Medium labels Dec 19, 2017
@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

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!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants