uplink
uplink copied to clipboard
proxy call is not honoured correctly by uplink
I have requirement where I invoke a proxy url https://
my code is as follows:
class TestClient(Consumer):
def __init__(self):
auth_methods = MultiAuth(
ProxyAuth("****", "****")
)
session = requests.Session()
session.verify = False
super(TestClient, self).__init__(base_url='https://host_name/cluster/proxy_topology/ranger',
auth=auth_methods, client=session)
@uplink.get('/service/public/v2/api/policy')
def get_policies(self):
""" get all the policies """
though Direct call works fine (without proxy) eg:
super(TestClient, self).__init__(base_url='https://host_name:6182',
auth=auth_methods, client=session)
@uplink.get('/service/public/v2/api/policy')
def get_policies(self):
""" get all the policies """
Hi @dsharmahortonworks. Could you paste the equivalent requests call that is working for you?