question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
busunkim96commented, Jul 29, 2019

Thank you @MaT1g3R! 🎉

1reaction
temotocommented, Jul 29, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

132477 – urllib does not honor no_proxy environment variable
Most (mature) software understands and honors the $http_proxy + $no_proxy environment variables for proxy setup (firefox/mozilla is the only ...
Read more >
Gdata Python Module - HTTP(s) Proxy via Environment Variable
I would like to use Fiddler (a HTTP(s) Proxy), to see what gcalcli sends/receives to/from Google. By their documentation it states, that I...
Read more >
Git doesn't honor NO_PROXY environment variable while ...
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as...
Read more >
We need to talk: Can we standardize NO_PROXY? - GitLab
Today, most Web clients support connection to proxy servers via environment variables: http_proxy / HTTP_PROXY; https_proxy / HTTPS_PROXY ...
Read more >
Question - FME Community - Safe Software
@gertjangj87 HTTPCaller should honor all HTTP_* environment variables. For some reason, the NO_PROXY variable is currently not honored.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found