import leancloud
leancloud.init('F9btryhWbo42lk4IFsQ09mJj-gzGzoHsz','XcyMKN4OAwEpnSf83urGhcYM')
Media = leancloud.Object.extend('Media')
media = Media()
media.set('type','video')
<leancloud.object_.Media object at 0x7f5af5932790>
media.save()
refresh app router failed: Traceback (most recent call last):
HTTPSConnectionPool(host='app-router.leancloud.cn', port=443): Max retries exceeded with url: /2/route?appId=F9btryhWbo42lk4IFsQ09mJj-gzGzoHsz (Caus
ed by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
File "<stdin>", line 1, in <module>
File "/home/leelingkit/.local/lib/python2.7/site-packages/leancloud/object_.py", line 235, in save
response = client.post('/classes/{0}?fetchWhenSave={1}'.format(self._class_name, fetch_when_save), data)
File "/home/leelingkit/.local/lib/python2.7/site-packages/leancloud/client.py", line 90, in new_func
return func(headers=headers,
args,
kwargs)
File "/home/leelingkit/.local/lib/python2.7/site-packages/leancloud/client.py", line 147, in new_func
response = func(
args,
kwargs)
File "/home/leelingkit/.local/lib/python2.7/site-packages/leancloud/client.py", line 209, in post
hooks=request_hooks,
File "/home/leelingkit/.local/lib/python2.7/site-packages/requests/sessions.py", line 549, in post
return self.request('POST', url, data=data, json=json,
kwargs)
File "/home/leelingkit/.local/lib/python2.7/site-packages/requests/sessions.py", line 502, in request
resp = self.send(prep,
send_kwargs)
File "/home/leelingkit/.local/lib/python2.7/site-packages/requests/sessions.py", line 612, in send
r = adapter.send(request,
kwargs)
File "/home/leelingkit/.local/lib/python2.7/site-packages/requests/adapters.py", line 502, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='f9btryhw.api.lncld.net', port=443): Max retries exceeded with url: /1.1/classes/Media?fetc
hWhenSave=false (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
I have no idea how to fix it.
Sorry to bother you guys again.
This time, only these few lines of error messages,
refresh app router failed: HTTPSConnectionPool(host='app-router.leancloud.cn', port=443): Max retries exceeded with url: /2/route?appId=F9btryhWbo42
lk4IFsQ09mJj-gzGzoHsz (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
I got kind of the same error:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.current-rms.com', port=443): Max retries exceeded with url: /api/v1/opportunities/checkout?subdomain=enfonic&apikey=PH-shFyyqdrZqgmZXcZf (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
Is it just the case of whitelisting current-rms.com?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 72, in get
return request('get', url, params=params,
kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url,
kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 512, in request
resp = self.send(prep,
send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 622, in send
r = adapter.send(request,
kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 507, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.westlotto.com', port=443): Max retries exceeded with url: /wlinfo/WL_InfoService?gruppe=SpielplanToto&client=wl
incl (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
Could you please give me a hand?
Hi guys.
Found this topic, I have similar problem. I'm using tinyPNG.com for compression, have an api key.
I get error (long post, I think last few error lines can read what is wrong):
2018-10-22 16:56:23,130: Exception on /profile [POST]#012Traceback (most recent call last):#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 594, in urlopen#012 self._prepare_proxy(conn)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 805, in _prepare_proxy#012 conn.connect()#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/urllib3/connection.py", line 308, in connect#012 self._tunnel()#012 File "/usr/lib/python3.6/http/client.py", line 919, in _tunnel#012 message.strip()))#012OSError: Tunnel connection failed: 403 Forbidden#012#012During handling of the above exception, another exception occurred:#012#012Traceback (most recent call last):#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/requests/adapters.py", line 449, in send#012 timeout=timeout#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen#012 _stacktrace=sys.exc_info()[2])#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment#012 raise MaxRetryError(_pool, url, error or ResponseError(cause))#012urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.tinify.com', port=443): Max retries exceeded with url: /shrink (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))#012#012During handling of the above exception, another exception occurred:#012#012Traceback (most recent call last):#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/tinify/client.py", line 58, in request#012 response = self.session.request(method, url,
params)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/requests/sessions.py", line 524, in request#012 resp = self.send(prep,
send_kwargs)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/requests/sessions.py", line 637, in send#012 r = adapter.send(request,
kwargs)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/requests/adapters.py", line 510, in send#012 raise ProxyError(e, request=request)#012requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.tinify.com', port=443): Max retries exceeded with url: /shrink (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app#012 response = self.full_dispatch_request()#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request#012 rv = self.handle_user_exception(e)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception#012 reraise(exc_type, exc_value, tb)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise#012 raise value#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request#012 rv = self.dispatch_request()#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request#012 return self.view_functions
rule.endpoint
#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/views.py", line 88, in view#012 return self.dispatch_request(*args,
kwargs)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/flask/views.py", line 158, in dispatch_request#012 return meth(
args,
*kwargs)#012 File "/home/PinkFrojd/material_aukcije_online/controllers/profile_controller.py", line 42, in post#012 tinify.from_file(file).to_file(os.path.join(os.curdir,#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/tinify/
init
.py", line 79, in from_file#012 return Source.from_file(path)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/tinify/source.py", line 11, in from_file#012 return cls._shrink(path)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/tinify/source.py", line 26, in _shrink#012 response = tinify.get_client().request('POST', '/shrink', obj)#012 File "/home/PinkFrojd/.virtualenvs/aukcije_env/lib/python3.6/site-packages/tinify/client.py", line 64, in request#012 raise ConnectionError('Error while connecting: {0}'.format(err), cause=err)#012tinify.errors.ConnectionError: Error while connecting: HTTPSConnectionPool(host='api.tinify.com', port=443): Max retries exceeded with url: /shrink (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))
Hello! I'm trying to parse 4 sites that show simple tables in html for currency exchange, they are provided by local banks and they don't provide an API, so I have to use a request.get(). I'm getting the ProxyError, so I guess it's related to the whitelists.
Here is the error:
requests.exceptions.ProxyError:
HTTPSConnectionPool(host='banco.santanderrio.com.ar', port=443): Max
retries exceeded with url: /exec/cotizacion/ind ex.jsp (Caused by
ProxyError('Cannot connect to proxy.', OSError('Tunnel connection
failed: 403 Forbidden')))
See line 77 in this
https://github.com/ccxt/ccxt/blob/master/python/ccxt/kraken.py
I'm afraid no API doc is available for support.kraken.com, only for api.kraken.com :-(
I'm only trying to test the ccxt package and they consider support.kraken.com as an api for some requests.
If you can't add support.kraken.com in the whitelist, I understand and you can close this request.
Thanks anyway for the feedback
Hello I am trying to parse the data from below urls for doing my Academic project can you please help me out.
As per above information i am also getting following error , Can you please add below those links of API through that i can get the data.
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 594, in urlopen
self._prepare_proxy(conn)
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 815, in _prepare_proxy
conn.connect()
File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 324, in connect
self._tunnel()
File "/usr/lib/python3.7/http/client.py", line 911, in _tunnel
message.strip()))
OSError: Tunnel connection failed: 403 Forbidden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 445, in send
timeout=timeout
File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3.7/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.vijayavani.net', port=443): Max retries exceeded with url: /category/%e0%b2%b8%e0%b2
%ae%e0%b2%b8%e0%b3%8d%e0%b2%a4-%e0%b2%95%e0%b2%b0%e0%b3%8d%e0%b2%a8%e0%b2%be%e0%b2%9f%e0%b2%95/ (Caused by ProxyError('Cannot connect to proxy.', OS
Error('Tunnel connection failed: 403 Forbidden')))
the website is https://t66y.com/htm_data/2004/23/3907982.html
can you add it to whitelist ?
I have same problem when acessing the api links: https://data.gate.io/api2/ and https://data.gateapi.io/api/
Could you please help to update the whitelist. Many thanks.
I'm facing this issue + i also will integrate some others 3d part apps how will i get rid off this thing ?
because i have to upload it on server to make available for frontend dev.
HTTPSConnectionPool(host='optimus.zammad.com', port=443): Max retries exceeded with url: /api/v1/roles/1 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
I'm facing this issue
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.perfectlyclear.io', port=443): Max retries exceeded with url: /v1/pfc (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
Here is the documentation of my API
https://perfectlyclear.io/docs/
i have been trying to use an email services and have been stuck with this error
"HTTPSConnectionPool(host='api.courier.com', port=443): Max retries exceeded with url: /send (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))"
does it have anything to do with whitelist too?
I don't think that's it. Even if I just do something like curl https://espn.com I get curl: (56) Received HTTP code 403 from proxy after CONNECT
But any site from the whitelist works. Seems like my account doesn't have the right permission.
Hi! I'm getting this error. Could you please whitelist logDNA site?
Error sending logs HTTPSConnectionPool(host='logs.logdna.com', port=443): Max retries exceeded with url: /logs/ingest?hostname=green-liveweb34&ip=10.0.0.114&now=1648167876067 (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))). Discarding flush buffer
APIs are available here: https://docs.logdna.com/docs
I ran into this error i encountered before, HTTPSConnectionPool(host='rarefied-credit.000webhostapp.com', port=443): Max retries exceeded with url: /index.php (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))), and It had to do with whitelisting. could i be of assistance here to i don't have a link to the api docs but the site url is https://www.000webhost.com/
Hi @Glen,
I'm getting this same error when trying to scrape from a webpage (https://magicseaweed.com/Narragansett-Beach-Surf-Report/1103/) ... I previously had this web app of mine running fine (web scraping had no issues), but this was probably about a year or so ago. I just now revisited this & attempted to run my python web scraping script, and am receiving this error:
(Caused by ProxyError('Cannot connect to proxy.', OS
Error('Tunnel connection failed: 403 Forbidden')))
Seems like the solution is whitelisting the web page ... Can you please whitelist for me?
Thanks,
Hello there,
I got this error:
requests.exceptions.ProxyError: (HTTPSConnectionPool(host='alkt123.000webhostapp.com', port=443): Max retries exceeded with url).
I guessed it would be a whitelist problem.https://www.000webhost.com/terms-of-use
Can you add it to the whitelist please.
I'm on paid account but still getting an error.
raise URLError(err)
urllib.error.URLError: <urlopen error Tunnel connection failed: 403 Forbidden>
@pafk
HTTPSConnectionPool(host='api.orhanaydogdu.com.tr', port=443): Max retries exceeded with url: /deprem/kandilli/live (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
API Documentation: https://api.orhanaydogdu.com.tr/deprem/api-docs/
Sorry, we have had to rate-limit your feedback sending.
Please try again in a few moments...
Thanks for the feedback! Our tireless devs will get back to you soon.