Hi,
I'm connecting to our on premise Portal, only available in our network, so I don't use proxy.
gis = GIS(portal_url, username, portal_user_password, verify_cert=False)
connection works
After that I'm creating a new web map
new_map = WebMap()
works
Now I'm querying an item from our portal which is of type "WMS". This works as well but the WMS has an Internet URL.
Now I want to add this Internet WMS to my webmap:
wms_layer = WMSLayer(wmslayer[0].url)
works
But when I do
new_map .add_layer(wms_layer.layers[0])
I get an error:
A connection error has occurred: HTTPSConnectionPool(host='our.internet.domain', port=443): Max retries exceeded with url: /arcgis/services/wms/some_service/MapServer/WMSServer?service=WMS&request=GetCapabilities&version=1.3.0&token=short-live-token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001A3853E41C8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
How can I tell urlllib3 or the arcgis API to use proxy on specific requests but not for my portal itself?