The following get request works on my personal computer:
import requests
requests.get('https://example.org')
However, the same request on my work laptop results in this error:
ConnectionError: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None))
What i've tried:
-
- Setting up proxy
Based on these answers given, i've tried to set up the proxies using the following code below but it still returned the same error.
requests.get('https://example.org',
proxies=urllib.request.getproxies())
However, when I did a check at http://www.whatismyproxy.com/, it says that "no proxies were detected". urllib.request.getproxies()
also returned a blank dict {}
-
- Adding SSL cert
Also tried adding SSL cert but still had the same error
requests.get('https://example.org',
proxies=urllib.request.getproxies(),
verify=requests.certs.where())
So I'm not sure what else I can do so that the get request can work on my work laptop.