Failed request with https

Posted over 4 years ago by Atman An

Post a topic
Answered
A
Atman An

 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

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

Sorted by
A

Atman An posted over 4 years ago

Big brother is watching Crawlera

0 Votes

A

Atman An posted over 4 years ago

Hmm, maybe the GFW

0 Votes

nestor

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