Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy settings without env variables. #10585

Open
mitsuo0114 opened this issue Sep 1, 2021 · 3 comments
Open

Proxy settings without env variables. #10585

mitsuo0114 opened this issue Sep 1, 2021 · 3 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@mitsuo0114
Copy link

mitsuo0114 commented Sep 1, 2021

Hi,
This is almost same as below issue, but to make title more general, please allow me to create this issue.
#5348

When we want to change proxy setting (from internal network) with this library, we need to change global env variables
Like export HTTPS_PROXY=http://xx.xx.xx.xx in bash, os.environ["HTTPS_PROXY"]= "http://xx.xx.xx.xx" in python.

That affect to other threads and it is painful for me.

Actually, another python library[1] allows us to use local proxy with configuring httplib2. This doesn't affect to other threads.
The maintainers of [1] recommend us to use this google-cloud-python in Readme.
But this proxy issue is the one of the biggest issue and we cannot migrate actually.

I hope team enable us to set proxy without changing global data but by passing argument etc.
(Actually, I have already communicated Google Cloud Support )

[1] https://github.com/googleapis/google-api-python-client

@busunkim96 busunkim96 added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Sep 1, 2021
@busunkim96
Copy link
Contributor

Hi @mitsuo0114,

Thank you for opening an issue. The Google Cloud libraries use gRPC under the hood, so the easiest way to set proxy settings is to do so through one of the gRPC environment variables.

@lidiz Is there a way to set proxy settings for gRPC without using the env vars? I took a pass through MD files in https://github.com/grpc/grpc but was not able to find anything.

@busunkim96
Copy link
Contributor

Googlers, corresponding internal bug is b/198355620.

@girolamodaschio
Copy link

girolamodaschio commented Nov 21, 2023

Are there any news regarding this feature request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants