-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Running the following example:
var Proxy = require('browsermob-proxy').Proxy
, proxy = new Proxy()
, fs = require('fs');
proxy.doHAR('http://yahoo.com', function(err, data) {
if (err) {
console.error('ERROR: ' + err);
} else {
fs.writeFileSync('yahoo.com.har', data, 'utf8');
}
});I only get:
ERROR: browsermob-proxy returned error
No other info is given. I'm sure browsermob is running:
$ ./browsermob-proxy
Running BrowserMob Proxy using LittleProxy implementation. To revert to the legacy implementation, run the proxy with the command-line option '--use-littleproxy false'.
[INFO 2017-02-09T15:59:44,475 net.lightbody.bmp.proxy.Main] (main) Starting BrowserMob Proxy version 2.1.5-SNAPSHOT
[INFO 2017-02-09T15:59:44,638 org.eclipse.jetty.util.log] (main) jetty-7.x.y-SNAPSHOT
[INFO 2017-02-09T15:59:44,694 org.eclipse.jetty.util.log] (main) started o.e.j.s.ServletContextHandler{/,null}
[INFO 2017-02-09T15:59:45,500 org.eclipse.jetty.util.log] (main) Started SelectChannelConnector@0.0.0.0:8080
I'm under node v7.5.0
Metadata
Metadata
Assignees
Labels
No labels