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

'https' scheme not supported in proxy URI #179

Closed
iamaziz opened this issue Oct 14, 2019 · 1 comment
Closed

'https' scheme not supported in proxy URI #179

iamaziz opened this issue Oct 14, 2019 · 1 comment

Comments

@iamaziz
Copy link

iamaziz commented Oct 14, 2019

Hi @BenRKarl,

I'm trying to use google-ads (3.2.0) library on a server from behind a corporate proxy (the proxy is configured as ENV variables). However, I'm getting some proxy-related error.

For example, when I run this sample code:

>>> import google.ads.google_ads.client
>>> client = google.ads.google_ads.client.GoogleAdsClient.load_from_storage("google-ads.yaml")
>>> ga_service = client.get_service("GoogleAdsService", version="v2")
E1014 13:12:52.266054035  207919 http_proxy.cc:62] 'https' scheme not supported in proxy URI
>>> query = "select campaign.name from topic_view limit 1"
>>> response = ga_service.search("2900486729", query, page_size=50)
>>> for r in response:
...     print(r)

Request made: ClientCustomerId: 2900486729, Host: googleads.googleapis.com:443, 
Method: /google.ads.googleads.v2.services.GoogleAdsService/Search, 
RequestId: None, IsFault: True, FaultMessage: DNS resolution failed

As you see above getting the following error:

E1014 13:06:27.456300889  196163 http_proxy.cc:62] 'https' scheme not supported in proxy URI
Request made: ClientCustomerId: XXXXXXXXX, Host: googleads.googleapis.com:443, 
Method: /google.ads.googleads.v2.services.GoogleAdsService/Search, 
RequestId: None, IsFault: True, FaultMessage: DNS resolution failed

The same code runs OK on a local machine without Proxy.
May you please let me know how to address this issue?

Thanks.

@BenRKarl
Copy link
Contributor

Hi @iamaziz sorry for the delayed response! We unfortunately don't have proxy support implemented yet, but you can track progress via this issue: #171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants