Forums

(Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Whenever I try to make request it gives me an error saying requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.crunchyroll.com', port=443): Max retries exceeded with url: /ar/news (Caused by ProxyE rror('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) .

The url is: https://www.crunchyroll.com/ar/news

@Anime1Forest Hi, 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.

where can i send the link ?

@Anime1Forest Just post it here.

https://www.nationalbank.kz/kz/page/statistika

I am experiencing the same error, but I think the website I'm trying to access is whitelisted. Can someone please check if https://cbr.ru/ is whitelisted? If it is, what can I do to solve this error?

www.cbr.ru is whitelisted cbr.ru is not.

@BaurT Can you please confirm your request? If it is in regards to adding an endpoint to the whitelist, please note we need public documentation stating the hostname for the endpoint.

hi please add this url address to your whitelist https://aut.ac.ir/page_arch.php?slc_pg_id=257&slc_lang=fa&sid=1

https://aut.ac.ir is site of amirkabir university

hii Pythonanywhere Team

i deployed a flask app in that i used shoonya Api which is already whitelisted but when i tried to login into the api i got proxy error forbidden 403 like this.

can you help me to sort this

Hi PythonAnywhere

i used finvasia api but i caught an error of Proxy Error

can you please whitelist their domain

you can get their api endpoints from https://github.com/Shoonya-Dev/ShoonyaApi-py/blob/master/api_helper.py and their github repo https://github.com/Shoonya-Dev/ShoonyaApi-py

@mahdiamk -- I've passed your request on to the team that deal with whitelist requests.

@NavaneethanT996 -- I've also passed the request in your second message on to that team too. For the first message, could you give the full error message that you get?

@giles --Thanks for your Response

I got error mentioned in the title ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))

If i run on localhost it working fine but i got this error after deployed in PythonAnywhere

Is there more to it than that? If you look at the first post in this thread, there's that HTTPSConnectionPool(host='... bit at the start.

Hi @giles the Errors i found are listed Below

(<class 'requests.exceptions.ProxyError'>, ProxyError(MaxRetryError("HTTPSConnectionPool(host='www.nseindia.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))")), <traceback object at 0x7fea7cbbf5c0>)

(<class 'requests.exceptions.ProxyError'>, ProxyError(MaxRetryError("HTTPSConnectionPool(host='api.shoonya.com', port=443): Max retries exceeded with url: /NorenWClientTP//QuickAuth (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))")), <traceback object at 0x7fea9ab9a9c0>)

It looks like Indian Stock Exchange is blocking known headless servers in the data centers and allowing only connections from computers connected to consumer ISPs.

Okay Thanks for the information

hi sir . i still have the ProxyError at / HTTPSConnectionPool(host='aut.ac.ir', port=443): Max retries exceeded with url: /page_arch.php?slc_pg_id=257&slc_lang=fa&sid=1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) problem . i really appreciate your help.

@mahdiamk 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.

@NavaneethanT996 Thank you for your message, can you please confirm the endpoint which you would like us to consider adding?

Hi everyone HTTPSConnectionPool(host='www.daraz.pk', port=443): Max retries exceeded with url: /catalog/?q=beater%20machine (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) I am getting this error can anyone from pythonanywhere add this link so I can use www.daraz.pk for request https://open.daraz.com/doc/api.htm#/api?cid=1&path=/product/create&methodType=POST

@escoutfyp Hi, Thank you for your message. Can you please confirm the endpoint which you would like us to consider adding to the whitelist? , please note it should be stated in the documentation.

Hello,

I am writing this to let you knkw that we are experiencing problem hosting Daraz.pk (version of Pakistan) on pythonevetwhere.

We are requesting you to look into the matter so that we could be able to access APIs for our tool.

Please find the attached links related to the query:

Daraz.pk (www.daraz.pk) Daraz.pk Documentation LINK (https://open.daraz.com/doc/api.htm#/api?cid=1&path=/product/create&methodType=POST)

We are looking forward to hearing back.

@escoutfyp api.daraz.pk has now been added to the whitelist.

Hello, I am trying to access wixapi (host='www.wixapis.com', port=443), but unfortunately i am i getting error HTTPSConnectionPool(host='www.wixapis.com', port=443): Max retries exceeded with url: /oauth/access (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))), can you please fix by adding wixapis in your whitelist

@salmanahmed9211 Hi, 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 need public documentation stating the hostname for the endpoint.

Hi I'd like api.currencyapi.com to be whitelisted please. I'm getting the same error as those above.

Hello, I get an error when running the telegram bot code - raise proxyerror(e, request=request) requests.exceptions.proxyerror: httpsconnectionpool(host='24tv.ua', port=443): max retries exceeded with url: /golovni -novini_tag1792/ (caused by proxyerror('cannot connect to proxy.', oserror('tunnel connecti on failed: 403 forbidden'))) , could you please add 24tv.ua to the whitelist

Hy everyone, Thankyou for adding api.daraz.pk on whitelist but same as we want both to work so if you add www.daraz.pk in your whitelist than it will be helpful for us because we are using both the thing and on www.daraz.pk still we are getting proxy error so we will be very thankful if you add this also www.daraz.pk

@escoutfyp Thank you for your message. If you would like us to consider adding the above particular endpoint, please send us the link to the documentation which states the endpoint www.daraz.pk. Once we have received the requested documentation we will be able to consider your request further.

Kindly whitelist this site ASAP. Here is the official doc https://github.com/Medium/medium-api-docs

Hi @hmalik @giles! I am getting this kind of error message. requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.youtube.com', port=443): Max retries exceeded with url: /watch?v=gOf2SQVMUL0 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

If i run on localhost it works fine but i got this error after being deployed in PythonAnywhere. I am not sure but i think this is happening as the site www.youtube.com is not whitelisted for free user. It would be greatly appreciated if you could add it. Thanks

@theskyspace Hi, Thank you for your message. Can you please confirm the full domain for the website? If that is also the official documentation, can you please send us a direct link from the website to that documentation. Can you please also confirm the endpoint you would like us to consider adding?

@Utsab5 Hi, Thank you for your message. 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 need public documentation stating the hostname for the endpoint.

I'm facing the same problem...

HTTPSConnectionPool(host='shv-om.medium.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Please whitelist this URL too: https://shv-om.medium.com

Send us a link to the API documentation for the site and we'll consider it for the whitelist. Please note we need public documentation stating the hostname for the endpoint.

I have a same problem, please whitelist this URL too: https://technest.idda.az/

@Gunay23 Hi, Thank you for your message. 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 need public documentation stating the hostname for the endpoint.

Hi, I am facing the same problem ( Add please this to whitelist:

https://music.youtube.com

Package that uses it (I did not managed to find it on official Google resources):

https://github.com/sigma67/ytmusicapi

If there is no official documentation then it is not a candidate for the whitelist.

Hi,

I'm facing the same issue with IMDb APIs. I tried hitting https://www.imdb.com/title/tt0816692/reviews?ref_=tt_ov_rt but got the same 403 exception mentioned by the OP above. There is an official API documentation for IMDb API here. Can you please get it whitelisted ?

Their API does not appear to be a standard REST API with a published endpoint. You appear to need to connect through the AWS marketplace (https://developer.imdb.com/documentation/api-documentation/getting-access/?ref_=side_nav) so you will not be able to use the imdb api from PythonAnywhere.

Hello,

I am facing the same error when interfacing with the Synthesia REST API :- Here is a link to the documentation: https://docs.synthesia.io/docs/getting-started

I would like to connect to the /v2/videos endpoint. All the documentation is public. Would you be able to help me get this whitelisted?

@kslion22 Thank you for your message. I can now confirm api.synthesia.io has been added to the allow list.

I am facing the same error when interfacing with the Serper REST API :- Here is a link to the documentation: https://serper.dev/

@adfouberr Hi, Thank you for your message. If you would like the above domain to be considered for the whitelist , please send us a link to the API documentation which states the endpoint you would like us to consider adding. Can you please also confirm the endpoint you would like us to add?

Hi , i have added this to my script to connect to proxy : exchange = ccxt.kucoinfutures({ 'rateLimit': 2000, 'enableRateLimit': True, 'options': { 'defaultType': 'future', 'requests': {'proxies': {'http': 'http://proxy.server:3128'}} }, }) But still have : ccxt.base.errors.NetworkError: kucoinfutures GET https://api-futures.kucoin.com/api/v1/contracts/active NB I have no issue to pay 5 dollars a month to have it working fine and help the service

Thanks for letting us know!

please add this url as well www.dailymail.co.uk

You'll find all the instructions for requesting allowlist additions here.

Hi I'd like https://api.tweets.beauty to be whitelisted please. I'm getting the same error as those above.

Hello, please add "https://statistics-api.wildberries.ru/api/v1/" to white list. I have same error

You'll find all the instructions for requesting allowlist additions here.

i would like tputo add "https://amzn.eu/d/"

You'll find all the instructions for requesting allowlist additions here.

hi, can you add "apptoogoodtogo.com" pls

You'll find all the instructions for requesting allowlist additions here.

Hello! Please add https://minfin.com.ua/currency/cards/ to your whitelist. I need to parse exchange rates from different banks and this is all there

You'll find all the instructions for requesting allowlist additions here.

please add this url as well www.chve.org.ua

@henish You'll find all the instructions for requesting allowlist additions here.