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

page.open failure reason uncertain #15175

Closed
tommybutler opened this issue Oct 26, 2017 · 1 comment
Closed

page.open failure reason uncertain #15175

tommybutler opened this issue Oct 26, 2017 · 1 comment
Labels

Comments

@tommybutler
Copy link

  1. Which version of PhantomJS are you using? Tip: run phantomjs --version.
    version 2.1.1

  2. What steps will reproduce the problem?
    call page.open() on a private URI, with logging enabled

  3. Which operating system are you using?
    windows

  4. Did you use binary PhantomJS or did you compile it from source?
    used binary from PhantomJS

  5. Please provide any additional information below.
    Based on the log messages I'm getting, I can call page.open() on several pages on an internal (classified) site, but when I get to one of the pages I normally hit without any problems, it fails and for no apparent reason.

How do I get the reason for failure? The return status code is 200, so it doesn't make any sense. The only oddity about this URL that would distinguish it from others is that it is html content that gets sent as if it were an excel attachment. I've been able to pull the content in the past, but it started failing a couple days ago, leading me to believe the problem is not related to this oddity, but some other server side problem.

Unfortunately the log messages tell me nothing that I can see which could help me in diagnosing the issue or formulating a workaround. How do I find the cause of the failure?

= onResourceRequested()
  request: {
    "headers": [
        {
            "name": "Accept",
            "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
        },
        {
            "name": "User-Agent",
            "value": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36"
        }
    ],
    "id": 160,
    "method": "GET",
    "time": "2017-10-26T15:16:17.527Z",
    "url": "/* redacted */"
}
= onLoadStarted()
  leaving url: "/* redacted */"
= onResourceReceived()
  id: 160, stage: "start", response: {"body":"","bodySize":7660,"contentType":"application/vnd.ms-excel","headers":[{"name":"Date","value":"Thu, 26 Oct 2017
15:16:53 GMT"},{"name":"Server","value":"Apache-Coyote/1.1"},{"name":"content-disposition","value":"attachment;
filename=\"file.xls\""},{"name":"Cache-Control","value":"no-cache, no-store"},{"name":"Expires","value":"Wed, 26 Oct
2016 15:16:53 GMT"},{"name":"Vary","value":"Accept-Encoding"},{"name":"Content-Type","value":"application/vnd.ms-excel"},{"name":"Content-Length","value":"8220
66"},{"name":"Keep-Alive","value":"timeout=5, max=488"},{"name":"Connection","value":"Keep-Alive"}],"id":160,"redirectURL":null,"stage":"start","status":200,"s
tatusText":"OK","time":"2017-10-26T15:16:53.582Z","url":"/* redacted */"}
= onLoadFinished()
  status: fail
@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, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). 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

1 participant