browsermob-node icon indicating copy to clipboard operation
browsermob-node copied to clipboard

ERROR: Error: connect ECONNREFUSED

Open cnfi opened this issue 11 years ago • 5 comments

ERROR: Error: connect ECONNREFUSED

cnfi avatar Apr 25 '14 05:04 cnfi

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

dwhu avatar Jan 27 '16 20:01 dwhu

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?

mikeproeng37 avatar Jun 17 '16 20:06 mikeproeng37

@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.

macroking avatar Aug 02 '16 19:08 macroking

Is this resoved? @cnfi @kjbekkelund

shashidharus avatar Aug 15 '17 14:08 shashidharus

@shashidharus there is no browsermob-proxy.bat nor browsermob-proxy.sh in /bin folder.

trungnguyenexp avatar Nov 14 '17 04:11 trungnguyenexp