google-api-python-client does not honor `no_proxy` environment variable

Created on 24 Jul 2019  路  5Comments  路  Source: googleapis/google-api-python-client

Environment details

  • OS: Ubuntu 18.04
  • Python version: 3.6.8
  • pip version: 19.1.1
  • google-api-python-client version: 1.7.9

Steps to reproduce

We have a squid proxy running; The squid is not able to talk to google apis/metadata server.

export no_proxy=metadata.google.internal,.googleapis.com
export http_proxy=http://squid:3128
export https_proxy=http://squid:3128

We expect the no_proxy env var is honored.
This is an issue with httplib2, we've already sent a PR to them here: https://github.com/httplib2/httplib2/pull/140

external p2 bug

All 5 comments

Hello. Sorry, the problem was caused by my bad code. Fix is merged in httplib2 master.

And now it's released as 0.13.1 on PyPI. Sorry for inconvenience.

@temoto Thank you for the quick fix!

Just to be clear: @MaT1g3R did all the work.

Thank you @MaT1g3R! :tada:

Was this page helpful?
0 / 5 - 0 ratings