Forums

raise ProxyError(e, request=request)

I have looked into the forum for similar issues, but no clear solution to me.

I'm trying to get an image from an URL that is public. When I have executed this code in Google Colab, it worked.

the line of code:

request = requests.get(tweetImageURL, stream=True)

the error:

raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='joapen.com', port=443): Max retries exceeded with url: /store/wp-content/uploads/2022/09/unisex-b asic-softstyle-t-shirt-white-front-6321be357f485.jpg (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Is there anything I have to add related to the host in the configuration?

many thanks in advance

@joapen If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation. Please note we can only whitelist sites with an official public API.

Hello, the site is a regular site where I only want to get some images to add to a tweet. There is not public API as far as I know. best regards, joapen

raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.amazon.in', port=443): Max retries exceeded with url: /Armani-Exchange-Analog-Blue-Watch-AX1723/dp/B097NF5 VDV/ref=sr_1_10?keywords=armani+watches+for+men+blue+and+gold+in+india&qid=1695198388&sr=8-10 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connecti on failed: 403 Forbidden')))

Free accounts can only access http(s) sites on our Allowlist. See http://help.pythonanywhere.com/pages/403ForbiddenError/ for details. If the site has a publicly documented API. You'll find all the instructions for requesting allowlist additions here: https://help.pythonanywhere.com/pages/RequestingAllowlistAdditions.