lightbody / browsermob-proxy

A free utility to help web developers watch and manipulate network traffic from their AJAX applications.
http://bmp.lightbody.net
Apache License 2.0
2.13k stars 646 forks source link

MacOS Mojave - ERR_PROXY_CONNECTION_FAILED #802

Open thomasKuntermannDiva-e opened 5 years ago

thomasKuntermannDiva-e commented 5 years ago

I was facing the issue, that after updating my MacOS from 10.13.x to 10.14 (Mojave), that browsermobproxy was not able to to work with chromedriver + firefoxdriver anymore. I got the error displayed: 44606994-f28fca00-a7bc-11e8-80dd-fc994a719b1b

that was happening, when working with an active VPN connection to my companies network.

Solution for that:

127.0.0.1 localhost,mbpro-username.local 255.255.255.255 broadcasthost ::1 localhost,mbpro-username.local

Mandeep-S commented 5 years ago

@tkuntermannpv why is it open issue ? or you had resolved it with above steps ?

thomasKuntermannDiva-e commented 5 years ago

@Mandeep-S i opened this issue and left it open, so that you may find a solution for that without needing my workaround to be applied. Before the upgrade to MacOS Mojave, it worked without my described workaround. Don't know what caused the described issue, but maybe you find out, if you can fix this within browsermob-proxy?

Mandeep-S commented 5 years ago

@tkuntermannpv , I followed your instructions and it worked for me. Thanks for the solution. :)

thomasKuntermannDiva-e commented 5 years ago

:) nice! i just have no idea, why it works currently only that way :(

Mandeep-S commented 5 years ago

@tkuntermannpv I have another system Mac High Sierra (version 10.13.3) and I am getting ERR_CONNECTION_TIMED_OUT there with same code ? Any idea or fix for that ? I tried above solution but it didnt worked there.

thomasKuntermannDiva-e commented 5 years ago

are you using a VPN client while executing browsermob-proxy @Mandeep-S ? if yes, try to turn it off (before upgrading to MacOS Mojave i had this issue only, when using a VPN client to get into my companies network, what was not necessary for accessing the SystemUnderTest). My VPN Client is "Cisco AnyConnect" (don't know if this makes any difference for this issue, but mention it for documentation ;) )

Mandeep-S commented 5 years ago

no, I am not using a VPN client. The system is actually company's system where I am trying to run.

thomasKuntermannDiva-e commented 5 years ago

hm, you said in https://github.com/lightbody/browsermob-proxy/issues/802#issuecomment-456815099, that the solution worked for you? have you tried this on 2 different MacOS versions until now?

Mandeep-S commented 5 years ago

yes, In Mojave its working but not in High Seirra

thomasKuntermannDiva-e commented 5 years ago

good hint, then the issue must be introduced with MacOS 10.13.3, because i tried on a Virtual Machine last week with MacOS 10.13.2 and there i had no issue at all (without adapting the /etc/hosts fix). Maybe 10.13.3 is the error-causing OS version. I suggest to not run browsermob-proxy on that version, as long as nobody else has any idea on that

s2oBCN commented 5 years ago

tkuntermannpv. Thank you for sharing your workaround !! This worked for me :)

lindaxuxlj commented 3 years ago

Thanks tkuntermannpv. Thank you for sharing your workaround on Mac !! Do u know how to solve this problem on windows?

thomasKuntermannDiva-e commented 3 years ago

@lindasunflower unfortunately not. But i expect, that Windows may have a quite similar setup possibility. it was even hard to find a solution for MacOS :D If you find a solution, it would be great to share it here too.

Good luck ;)