Error loading CasperJS resource with status = failed (HTTP 0)

Every time my script tries to open the Create Job Job form on the site I'm trying to execute, the logs will always look like this:

[info] [phantom] Step _step 9/18 http://www.samplesite.com/jobs/edit (HTTP 200)
[info] [phantom] Step _step 9/18: done in 12780ms.
[debug] [phantom] Navigation requested: url=about:blank, type=Other, willNavigate=true, isMainFrame=false
[debug] [phantom] Navigation requested: url=http://www.samplesite.com/jobs/edit, type=Other, willNavigate=true, isMainFrame=false
[warning] [phantom] Loading resource failed with status=fail: http://www.samplesite.com/jobs/edit
[warning] [phantom] Casper.waitFor() timeout
[info] [phantom] Step _step 10/18 http://www.samplesite.com/jobs/edit (HTTP 0)
[info] [phantom] Step _step 10/18: done in 22814ms.
[warning] [phantom] Casper.waitFor() timeout

      

I tried opening the site manually, but everything seems to be fine. Looked at the error screenshot and HTML script of the last step with CasperJS and it will always look like this: enter image description here

I tried to do some research for any workaround on this issue, and some suggested adding --ignore-ssl-errors=true

or --ssl-protocol=any

to my team, but it didn't work on my end.

In my JS script, I haven't added any special methods. I only used a simple casper.click()

or casper.open()

open page.

I am using casperjs 1.0.0 and phantomjs 2.1.1

+3


source to share





All Articles