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

"ERR_EMPTY_RESPONSE" Android

Open EvilCifer opened this issue 5 years ago • 2 comments

Hi,

I'm trying to implement the browsermob api in an Android App. It looks like it is starts the Proxy, but everytime I set the Proxy in the Wifi settings I'm getting an "ERR_EMPTY_RESPONSE" from Chrome. I also installed the keystore (.p12).

I've also tried out a different Browser (Firefox for Android) and this one says, that the authentication with the remote server failed.

Bildschirmfoto von 2020-08-27 15-20-49

EvilCifer avatar Aug 27 '20 13:08 EvilCifer

I am seeing this myself too:


      - BROWSERMOB_PORT=7500
      - ./browsermob-proxy-2.1.4/bin/browsermob-proxy -port $BROWSERMOB_PORT >> $DEVICEFARM_LOG_DIR/browsermob.log 2>&1 &

      - >-
        start_proxy_timeout=0;
        PROXY_PORT=$(curl -X POST http://localhost:$BROWSERMOB_PORT/proxy | grep "port" | cut -d":" -f2 | cut -d "}" -f1);
        while [ "$PROXY_PORT" = "" ];
        do
            if [ $start_proxy_timeout -gt 30 ];
            then
                echo "proxy never started in 30 seconds. Exiting";
                exit 1;
            fi;
            echo "Waiting for proxy to start. Sleeping for 1 second";
            sleep 1;
            start_proxy_timeout=$((start_proxy_timeout+1));
            PROXY_PORT=$(curl -X POST http://localhost:$BROWSERMOB_PORT/proxy | grep "port" | cut -d":" -f2 | cut -d "}" -f1);
        done;

      - adb reverse tcp:$PROXY_PORT tcp:$PROXY_PORT
      - adb shell settings put global http_proxy localhost:$PROXY_PORT

It appears my proxy configuration is correct, but for whatever reason, data isn't being returned from my requests.

aristeia avatar Sep 11 '20 21:09 aristeia

I am seeing the same error on Chrome

lindaxuxlj avatar Mar 21 '21 09:03 lindaxuxlj