druid-io / pydruid

A Python connector for Druid
Other
506 stars 194 forks source link

OSError: HTTP Error 407: Proxy Authetication error #158

Open iamshreeram opened 5 years ago

iamshreeram commented 5 years ago

Is there any way to pass proxy authentication in pydruid? I'm seeing below error when using pydruid.client

OSError: HTTP Error 407: Proxy Authetication error 
Druid Error: autheticationrequired

It works good when I use pydruid.db.connect

wjdecorte commented 5 years ago

I'm no expert, but I see the PyDruid class has two methods that might be helpful for you.

  1. set_basic_auth_credentials(username, password)
  2. set_proxies(proxies)

I hope that helps!