requests.exceptions.ProxyError: HTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /ip (Caused by ProxyError('Cannot connect to proxy.', error(54, 'Connection reset by peer')))
0 Votes
nestor posted
over 4 years ago
AdminBest Answer
Sounds like you have a firewall that might be blocking connection to Crawlera. Make sure port 8010 is open.
0 Votes
3 Comments
Sorted by
A
Atman Anposted
over 4 years ago
Big brother is watching Crawlera
0 Votes
A
Atman Anposted
over 4 years ago
Hmm, maybe the GFW
0 Votes
nestorposted
over 4 years ago
AdminAnswer
Sounds like you have a firewall that might be blocking connection to Crawlera. Make sure port 8010 is open.
import requests
response = requests.get(
"https://httpbin.org/ip",
proxies={
'http': 'http://<mytoken>:@proxy.crawlera.com:8010/',
'https': 'https://<mytoken>:@proxy.crawlera.com:8010/'
},
verify='./crawlera-ca.crt',
# headers={'x-crawlera-use-https':'1'}
)
print(response.text)
got
requests.exceptions.ProxyError: HTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /ip (Caused by ProxyError('Cannot connect to proxy.', error(54, 'Connection reset by peer')))
0 Votes
nestor posted over 4 years ago Admin Best Answer
Sounds like you have a firewall that might be blocking connection to Crawlera. Make sure port 8010 is open.
0 Votes
3 Comments
Atman An posted over 4 years ago
Big brother is watching Crawlera
0 Votes
Atman An posted over 4 years ago
Hmm, maybe the GFW
0 Votes
nestor posted over 4 years ago Admin Answer
Sounds like you have a firewall that might be blocking connection to Crawlera. Make sure port 8010 is open.
0 Votes
Login to post a comment