AnsweredAssumed Answered

Python Proxy Issue

Question asked by epfirman on Jul 20, 2016


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)

     shape.publish()

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.

Outcomes