Forums

Whitelist of external internet sites via a proxy

Hi,

I'm trying to connect to mercadolibre.com api but I'm getting this error message;

curl: (56) Received HTTP code 403 from proxy after CONNECT

with requests I got this one:

requests.exceptions.ProxyError: Cannot connect to proxy. Socket error: Tunnel connection failed: 403 Forbidden

Searching pythonanywhere forums I found this one: https://www.pythonanywhere.com/forums/topic/865/.

Now I need to know if mercadolibre is in the whitelist of allowed external sites so I can use its api from here.

Thanks in advance.

PS: I'm using a free account in pythonanywhere.

Hi again,

I sorry for posting before trying to see if the information I'm looking for is public, as I figured out recently. Here https://www.pythonanywhere.com/whitelist/ I found mercadolibre is not in the whitelist, so, Is there any possibility to include it at least for temporal access?

Thanks.

The requirements for whitelisting a site are that it should have a public API and be useful for other free users. I don't see any evidence that it has a public API. If I'm wrong, just post a link to their API docs and I'll add it to the whitelist.

Thanks for the fast response,

this is the url to the developers site: http://developers.mercadolibre.com/, and here http://developers.mercadolibre.com/first-step/ is the online documentation of the api.

Please let me know if this enough.

Thank you very much.

That's perfect. I have added api.mercadolibre.com to the whitelist.

hi glenn,

I appreciate your help, I'm trying to test the connection but I can't see it work. I tried from another url with no proxy and it worked fine. Do I have to do something else (some update action or something) to get it?

Thanks a lot.

I sorry, I'm new in this site.

I've just tested these two from a free account Bash shell, both seem to work:

curl api.mercadolibre.com
python -c 'import requests; print(requests.get("http://api.mercadolibre.com").text)'

What happens when you try it?

I think I know what the problem is. The api needs https and I sent you an http url. Please change it, it shall work.

Thanks a lot for the fast responses

HTTPS works fine for me?

curl https://api.mercadolibre.com/users/1
{"id":1,"nickname":"NICTRAFFICGENER1","registration_date":"2011-09-05T12:00:00.000-04:00","country_id":"CL","address":{"state":null,"city":null},"user_type":"normal","tags":["normal","test_user"],"logo":null,"points":0,"site_id":"MLC","permalink":"http://perfil.mercadolibre.cl/NICTRAFFICGENER1","seller_reputation":{"level_id":null,"power_seller_status":null,"transactions":{"period":"historic","total":0,"completed":0,"canceled":0,"ratings":{"positive":0,"negative":0,"neutral":0}}},"status":{"site_status":"deactive"}}

python -c"import requests; print(requests.get('https://api.mercadolibre.com/users/1').text)"
{"id":1,"nickname":"NICTRAFFICGENER1","registration_date":"2011-09-05T12:00:00.000-04:00","country_id":"CL","address":{"state":null,"city":null},"user_type":"normal","tags":["normal","test_user"],"logo":null,"points":0,"site_id":"MLC","permalink":"http://perfil.mercadolibre.cl/NICTRAFFICGENER1","seller_reputation":{"level_id":null,"power_seller_status":null,"transactions":{"period":"historic","total":0,"completed":0,"canceled":0,"ratings":{"positive":0,"negative":0,"neutral":0}}},"status":{"site_status":"deactive"}}

Yes, you are right, thanks.

Can you please add api.mercadopago.com to the whitelist too, please? It's another tool from mercadolibre.

Thanks.

Are you sure that's the right domain? I can't seem to access anything there.

Hi Giles, thanks for your reply. Yes, the domain is right. You can check this URL, for example: https://api.mercadopago.com//merchant_orders/

Thanks,

Bruno

How odd, it wasn't working earlier -- maybe they had a glitch. I've whitelisted it now.

Thanks, Giles!! :D

I need to use grow.io technologies so this is the link that i consult from cmd curl https://install.grow.io | bash but I'm getting this error message curl: (56) Received HTTP code 403 from proxy after CONNECT I'm using a free account in pythonanywhere

As usual, send a link to the api docs that show that that is a public api endpoint.

I'm having a similar issue with codeberg.org. I just filed an issue / question and received:

What exactly do they need? Codeberg is accessible via HTTPS, git+ssh, and the Gitea Swagger API (documented at https://docs.gitea.io/en-us/api-usage/).

Is that good enough for whitelisting?

@ubuntourist Is the api endpoit mentioned in some public place?

@ fjl I got a response from the Codeberg folks:

I added a pointer to the public Imprint so that they should be able to add us to their whitelist: 94d9a08292. (imprint is linked in footer, API access in last paragraph on page)

So, to whit: The footer on every Codeberg.org page has a link to Imprint/Impressum. Following that link leads to a document which now says at the bottom:

Please refer to the official Gitea Swagger API documentation for information to access the API endpoints.

Public enough?

That's fine. It's done.

Excellent! Thanks for a speedy resolution!

Hello can you add these two sites to the whitelist? "https://api-futures.kucoin.com" "https://api-sandbox-futures.kucoin.com" The documentation is "https://docs.kucoin.com/futures/"

These were added to the whitelist:

    api-futures.kucoin.com
    api-futures.kucoin.io
    api-sandbox-futures.kucoin.com
    api-sandbox-futures.kucoin.io

Please add to whitelist:

api.allorigins.win

thanks

@boxscores please send a link to the official docs of that API.

The API is on GitHub:

https://github.com/gnuns/allOrigins/blob/master/README.md

No problem. I have added that to the whitelist.