Openshift python requests proxy permission denied -
i'm trying use proxy python 'requests' package on openshift server. getting permission denied error. see below.
is openshift blocking connection or not configuring correctly? else? openshift doesn't want let me connect proxy because code works fine locally , on heroku.
code
from ssl import protocol_tlsv1 import ssladapter proxies = {'https': 'http://{}:{}@96.44.147.34:6060'.format(cfg.proxy_username, cfg.proxy_password)} url1 = 'https://reservaciones.volaris.com/flight/deeplinksearch' session = requests.session() session.mount('https://', ssladapter.ssladapter(ssl_version=protocol_tlsv1)) request1 = session.get(url1, proxies=proxies)
traceback
requests.exceptions.proxyerror: httpsconnectionpool(host='reservaciones.volaris.com', port=443): max retries exceeded url: /flight/deeplinksearch (caused proxyerror('cannot connect proxy.', newconnectionerror('<requests.packages.urllib3.connection.verifiedhttpsconnection object @ 0x7f4e78386ad0>: failed establish new connection: [errno 13] permission denied',)))
most openshift blocks uncommon outgoing ports security reasons. proxy listening on 6060. should try ssh gear , try telnet
in gear, post 6060 blocked. see attached screenshot. portquiz listens on tcp ports.
Comments
Post a Comment