Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The example code errors #26

Open
yaquawa opened this issue Sep 13, 2017 · 8 comments
Open

The example code errors #26

yaquawa opened this issue Sep 13, 2017 · 8 comments

Comments

@yaquawa
Copy link

yaquawa commented Sep 13, 2017

I got this when I run the example code. (The version of my node.js is v8.5.0)

phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests.

  phantomjs://code/shim.js:1815 in send

phantom stdout:   phantomjs://code/shim.js:1815 in _start
  phantomjs://code/shim.js:1842
@TaylorAckley
Copy link

TaylorAckley commented Oct 5, 2017

Cosign, though im pretty sure this is on Phantom. Here is my code:

const x = Xray()
    .driver(phantom({
        XSSAuditingEnabled: true,
        loadImages: false,
        webSecurityEnabled: false
    }))
    .concurrency(3)
    .throttle(3, 500);

@TaylorAckley
Copy link

@yaquawa I forgot to check the closed issues.... see here for resolution:

(Note the webSecurity:false prop passed to the phantom constructor)

#16

@knandraina
Copy link

@TaylorAckley Where did you put this code? Into a new file?

@TaylorAckley
Copy link

@knandraina In reference to what? Which code?

@knandraina
Copy link

knandraina commented Jan 12, 2018

@TaylorAckley Yes I should have been more accurate. I have the same error as above

phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests.
phantomjs://code/shim.js:1815 in send
phantom stdout: phantomjs://code/shim.js:1815 in _start
phantomjs://code/shim.js:1842

I would like to fix that mistake and I asked where I needed to put this code

const x = Xray()
.driver(phantom({
XSSAuditingEnabled: true,
loadImages: false,
webSecurityEnabled: false
}))
.concurrency(3)
.throttle(3, 500);

@TaylorAckley
Copy link

It would replace the XRay instantiation you already have.

I guess if you need an example you can use my partially completed program: https://github.com/TaylorAckley/SitemapScraper/blob/master/Scraper.js

@ralphdas
Copy link

ralphdas commented Feb 17, 2018

Watch out for the exact wording here:

    .driver(phantom({
        XSSAuditingEnabled: true,
        loadImages: false,
        webSecurity: false
    }))  

it is webSecurity not webSecurityEnabled

@kjr247
Copy link

kjr247 commented Jul 23, 2018

I also get this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants