Setup GAM Corporate network using Proxy

282 views
Skip to first unread message

David Olsakowski

unread,
Oct 23, 2020, 8:43:53 AM10/23/20
to GAM for G Suite
Has anyone encoutered the following on a corporate network...

I have set env variable HTTP_PROXY=http://xxxxxxxxxxxxxxxxxxxx

And trying to set up GAM get the following error:

ERROR: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001493FF637F0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

Ross Scroggs

unread,
Oct 23, 2020, 9:42:01 AM10/23/20
to google-ap...@googlegroups.com
David,

As all GAM connections to Google are via https, try setting:
env variable HTTPS_PROXY=https://xxxxxxxxxxxxxxxxxxxx

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e89c4daf-bc94-4527-a4e4-c82b8a393503n%40googlegroups.com.

David Olsakowski

unread,
Oct 26, 2020, 3:27:55 PM10/26/20
to GAM for G Suite
same error...

ERROR: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002038D5F37F0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

Does anyone know if "auto Proxy" config would affect this?

Jay Lee

unread,
Oct 26, 2020, 3:34:14 PM10/26/20
to google-ap...@googlegroups.com
Did you specify the proxy port number for HTTP_PROXY? It doesn't look to me like GAM is having success talking to the proxy.

Jay Lee


David Olsakowski

unread,
Oct 28, 2020, 8:02:03 AM10/28/20
to GAM for G Suite
I specified proxy and port and verified that it is "talking" to it...does anyone know what ports GAM uses from the desktop? Meaning can i need corporate firewall port opened up?

thanks

Jay Lee

unread,
Oct 28, 2020, 9:42:19 AM10/28/20
to google-ap...@googlegroups.com

David Olsakowski

unread,
Oct 29, 2020, 3:43:32 PM10/29/20
to GAM for G Suite
Would port 443 be used through the proxy though, or is that something the firewall could be blocking?

thanks.

David Olsakowski

unread,
Oct 29, 2020, 4:03:40 PM10/29/20
to GAM for G Suite
Does anyone know what urls are accessed using GAM...possibly some are blocked and that is why I keep receiving error message?

thanks

David Olsakowski

unread,
Oct 30, 2020, 10:29:35 AM10/30/20
to GAM for G Suite
I am getting httplib2.socks.HTTPError: (407, b'Proxy Authentication Required') when i have both http_proxy and https_proxy set...

Does this mean anything to anyone? I am still unable to complete the setup.

thanks

On Wednesday, October 28, 2020 at 9:42:19 AM UTC-4 Jay Lee wrote:
Reply all
Reply to author
Forward
0 new messages