alexbardas / nightmare-har-plugin

Nightmare plugin used to retrieve the network activity of a web page in HAR (HTTP Archive) format
MIT License
18 stars 3 forks source link

Not allowed to load local resource: chrome://version/?get-har #8

Open avishwakarma opened 6 years ago

avishwakarma commented 6 years ago

Unable to download HAR file, following the error on the network panel

Not allowed to load local resource: chrome://version/?get-har

Using the same code shared in the README


let harPlugin = require('nightmare-har-plugin')

harPlugin.install(Nightmare)

let options = {
  waitTimeout: 1000
}

let nightmare = Nightmare(Object.assign(harPlugin.getDevtoolsOptions(), options))

nightmare
  .waitForDevtools()
  .goto('http://news.ycombinator.com')
  .wait('#hnmain')
  .getHAR()
  .end()
  .then((result) => console.log(JSON.stringify({log: result})))
  .catch((error) => console.error(error))```
ChristosChristofidis commented 6 years ago

Still getting the same error?

HaiBlackBox commented 6 years ago

I have the same problem. electron version:1.8.6

xwmyth8023 commented 5 years ago

if you guys getting this error, please use nightmare: "^2.10.0",then your issue will be fixed