dreamzmaster / gulp-pa11y

Audit accessibility of your site using Gulp
GNU General Public License v2.0
11 stars 4 forks source link

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

Open aknight5 opened 7 years ago

aknight5 commented 7 years ago

Anybody know how to fix this? I've got phantomjs 2.1.1 installed and am setting the web-security parameter:

var test = pa11y({
   url: 'google.com',
   phantom: {
       parameters : {
           'web-security': false
       }
   }
});

I've tried on/false/'on'/'false' and all kinds of other stuff. Nothing seems to work.

ThomPattersonNM commented 7 years ago

I'm encountering the same issue. Using locally installed gulp-pa11y@0.0.4 and globally installed phantomjs@2.1.7.

ThomPattersonNM commented 7 years ago

gulp-pa11y is using pa11y@1.7.0. That project is on 4.10.0 now. Installing pa11y@4.10.0 globally and testing my project from the command line works fine.

pa11y localhost:7000

Somewhere along the line pa11y took care of the phantomjs websecurity issue (https://stackoverflow.com/questions/15913170/phantom-js-synchronous-ajax-request-network-err-xmlhttprequest-exception-101).