<?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 ERROR - HTTP Error 504: Gateway Time-out in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-http-error-504-gateway-time-out/m-p/857036#M4047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running the following code we are getting random http gateway time-out errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replica1 = newRep.replicas.create(replica_name = (featureLayer + "_replica"),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return_attachments ='true',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attachments_sync_direction='bidirectional',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layers='0',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data_format='filegdb',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out_path = FilesFromAGOL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEBUG:root:ERROR - HTTP Error 504: Gateway Time-out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looping through 10 hosted feature layers and the above error is thrown randomly at one of them, sometimes at layer 5 sometimes at layer 10. The same code on the same layers has been running fine. Trying to figure out if is an issue on the ESRI end that is stopping the replica creation all of a sudden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas that i can use to test and isolate the timeout source.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 03:58:31 GMT</pubDate>
    <dc:creator>AlistairFox</dc:creator>
    <dc:date>2017-03-30T03:58:31Z</dc:date>
    <item>
      <title>ERROR - HTTP Error 504: Gateway Time-out</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-http-error-504-gateway-time-out/m-p/857036#M4047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running the following code we are getting random http gateway time-out errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replica1 = newRep.replicas.create(replica_name = (featureLayer + "_replica"),&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return_attachments ='true',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attachments_sync_direction='bidirectional',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;layers='0',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data_format='filegdb',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out_path = FilesFromAGOL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEBUG:root:ERROR - HTTP Error 504: Gateway Time-out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looping through 10 hosted feature layers and the above error is thrown randomly at one of them, sometimes at layer 5 sometimes at layer 10. The same code on the same layers has been running fine. Trying to figure out if is an issue on the ESRI end that is stopping the replica creation all of a sudden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas that i can use to test and isolate the timeout source.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 03:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-http-error-504-gateway-time-out/m-p/857036#M4047</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-03-30T03:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR - HTTP Error 504: Gateway Time-out</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-http-error-504-gateway-time-out/m-p/857037#M4048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/63040"&gt;Alistair Fox&lt;/A&gt;‌!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're getting a 504 Gateway timeout error, you're dataset is probably too large to process as a sync request (which is the default) before it times out. Instead you'll want to run this as an async request. Try setting the async parameter to true. See more info&amp;nbsp;in the help on the create replica call here:&amp;nbsp;&lt;A class="link-titled" href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=replicas#syncmanager" title="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=replicas#syncmanager"&gt;arcgis.features.managers module — arcgis 1.0.1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Stephanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 13:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-http-error-504-gateway-time-out/m-p/857037#M4048</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2017-03-30T13:38:36Z</dc:date>
    </item>
  </channel>
</rss>

