Python Proxy Issue

07-20-2016 03:58 AM
New Contributor III

I am using ArcGIS Python API for ArcGIS Pro 1.3. The code is simple.

     from arcgis.gis import *

     gis = GIS("arcgis online", "account", "password")

     data = r"zipped shapefile"

     shape = gis.content.add({}, data)


The add() step generates the error:

TimeoutError: [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

I have HTTP_PROXY and HTTPS_PROXY environment variables set to http://username:password@proxy:port

The environment settings were used successfully when I was using conda during installation.

Tags (2)
0 Kudos
0 Replies