<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: arcrest sample create_replica_portal_sample proxy error in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705391#M3428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turned out that the server having the problem has an (redundant and faulty) environment setting for proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urllib reads that and acts upon the faulty settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the environment setting and rebooting the server solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 09:19:10 GMT</pubDate>
    <dc:creator>Gisbert61</dc:creator>
    <dc:date>2016-09-01T09:19:10Z</dc:date>
    <item>
      <title>arcrest sample create_replica_portal_sample proxy error</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705389#M3426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've managed to get the create_replica_portal_sample working on my desktop &lt;A href="https://github.com/Esri/ArcREST/blob/master/samples/create_replica_portal_item.py"&gt;https://github.com/Esri/ArcREST/blob/master/samples/create_replica_portal_item.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however in production it needs to run on a server through a proxyserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I can get is the error "URLError: &amp;lt;urlopen error Tunnel connection failed: 407 Proxy Authorization Required&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the magic should happen by filling in the securityinfo dict in the right way but can someone shine some light on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without proxy, on my desktop, it's:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;securityinfo{'securitytype':'Portal','username':'myagolusername','password':'myagolpassword'} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can fill in the proxy_url and proxy_port but that doesn't work. I suspect I need to authenticate myself on the proxyserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did so in another script where I used the form '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmynetworkaccount%3Amynetworkpassword%40proxyserver.com%3Aproxyport" rel="nofollow" target="_blank"&gt;http://mynetworkaccount:mynetworkpassword@proxyserver.com:proxyport&lt;/A&gt;&lt;A class="jive-link-email-small" href="mailto:mynetworkpassword@proxyserver.com"&gt;mynetworkpassword@proxyserver.com&lt;/A&gt;&lt;SPAN&gt;:proxyport' but that used urllib2.ProxyHandler and I do not know how to translate that to this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, as you all know, is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705389#M3426</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-07-25T12:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: arcrest sample create_replica_portal_sample proxy error</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705390#M3427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, found issue: &lt;A href="https://github.com/Esri/ArcREST/issues/126" title="https://github.com/Esri/ArcREST/issues/126"&gt;HTTP Error 407 · Issue #126 · Esri/ArcREST · GitHub&lt;/A&gt;​ and proposed solution in that thread. Will ask IT for permission to test this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 07:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705390#M3427</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-08-01T07:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcrest sample create_replica_portal_sample proxy error</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705391#M3428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turned out that the server having the problem has an (redundant and faulty) environment setting for proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urllib reads that and acts upon the faulty settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the environment setting and rebooting the server solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcrest-sample-create-replica-portal-sample-proxy/m-p/705391#M3428</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-09-01T09:19:10Z</dc:date>
    </item>
  </channel>
</rss>

