-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requests library not working while mitm proxy enabled #4572
Comments
Please share some code that reproduces the problem, otherwise we can only make guesses. |
|
Here's what I'm seeing for both mitmdump 6.0.2 and 7.0.0-dev: import requests
class WsLog:
def __init__(self):
print('starting WSLogger')
a = requests.get('https://www.google.com/', timeout=5)
print(a)
print('request done')
addons = [
WsLog()
]
|
I'm going to close this. If you believe this is a bug in mitmproxy then please provide clear steps to reproduce it and re-open the issue. |
I have the same problem and can't reproduce it immediately,it occured hours after proxy started. |
What occurred? It's entirely normal for networks to fail occasionally or for Google (or your endpoint) to go down for a brief moment. |
Problem Description
Can't use requests library in script, throws following error:
in script mitm.py: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1034: The handshake operation timed out')))
Any idea how I can resolve this?
The text was updated successfully, but these errors were encountered: