title: Python Google oauth2 Cannot connect to proxy
body: <p>I have the following code:</p>
  <pre><code>from google.oauth2 import service_account
  from google.auth.transport.requests import Request
  import requests, json
  
  det_access = json.loads(file)
  credentials = service_account.Credentials.from_service_account_info(det_access['bigquery_creds'])
  
  session = requests.Session()
  session.proxies.update(proxies)
  session.verify = False
  
  request = Request(session)
  credentials.refresh(request)
  </code></pre>
  <p>But the above raise the error:</p>
  <blockquote>
  <p>TransportError: HTTPSConnectionPool(host='oauth2.googleapis.com',
  port=443): Max retries exceeded with url: /token (Caused by
  ProxyError('Cannot connect to proxy.',
  NewConnectionError('&lt;urllib3.connection.VerifiedHTTPSConnection object
  at 0x00000251BE1EE2C8&gt;: Failed to establish a new connection: [Errno
  11001] getaddrinfo failed')))</p>
  </blockquote>
  <p>Do you know how to circumvent the issue please?</p>
  <p>Thanks folks!</p>