Skip to content

ERROR: browsermob-proxy returned error #24

Description

@lucaswxp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions