browsermob-node
                                
                                 browsermob-node copied to clipboard
                                
                                    browsermob-node copied to clipboard
                            
                            
                            
                        ERROR: Error: connect ECONNREFUSED
ERROR: Error: connect ECONNREFUSED
I have the same issue.  Even though I have pointed the proxy to point to proxy = new Proxy({selPort: 4444}) it still attempts to bind to port 8080.
ERROR: Error: connect ECONNREFUSED 127.0.0.1:8080
I am also getting this error. I run the following
    proxy = new Proxy({ host: 'localhost', port:9091 })
    proxy.start(function(err, data) {
      if (err) {
        console.error(err);
      }
But on start, I get an error { [Error: socket hang up] code: 'ECONNRESET' } any ideas on why?
@dwhu The reason is that we first need to start the browsermob proxy, GoTo Browermobproxy /bin folder and run 'browsermob-proxy.bat' or 'browsermob-proxy.sh' browsermob-proxy -port 8080
After doing that, your code should work just fine.
Is this resoved? @cnfi @kjbekkelund
@shashidharus there is no browsermob-proxy.bat nor browsermob-proxy.sh in /bin folder.