<?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: geometryservice proxy error in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836512#M8810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The internal server error means that it just had an issue doing the intersect, not that you don't have your proxy setup correctly. I have see the internal server error before and restarting your ArcGIS Server sometime resolves that error if there is not something wrong with the geometries you are trying to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 15:51:37 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-07-25T15:51:37Z</dc:date>
    <item>
      <title>geometryservice proxy error</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836511#M8809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the geometry service in the proxy.config&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxxxxxxx%2Frest%2Fservices%2FUtilities%2FGeometry%2FGeometryServer%2F" rel="nofollow" target="_blank"&gt;http://xxxxxxx/rest/services/Utilities/Geometry/GeometryServer/&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the proxy setup in the config.json of the app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"wabVersion": "2.8",&lt;BR /&gt; "isTemplateApp": true,&lt;BR /&gt; "isWebTier": false,&lt;BR /&gt; "httpProxy": {&lt;BR /&gt; "useProxy": true,&lt;BR /&gt; "alwaysUseProxy": false,&lt;BR /&gt;&lt;SPAN&gt; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxxxxxx%2FDotNet%2Fproxy.ashx" rel="nofollow" target="_blank"&gt;http://xxxxxx/DotNet/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; "rules": []&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the geometryservice gives me the 500 error&amp;nbsp;&lt;/P&gt;&lt;P&gt;geometryService.intersect(firstgraphics, secondgraphics[0], this.theoutput);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxxxx%2FDotNet%2Fproxy.ashx%3Fhttp%3A%2F%2Fxxxx%2Frest%2Fservices%2FUtilities%2FGeometry%2FGeometryServer%2Fintersect" rel="nofollow" target="_blank"&gt;http://xxxx/DotNet/proxy.ashx?http://xxxx/rest/services/Utilities/Geometry/GeometryServer/intersect&lt;/A&gt;&lt;SPAN&gt; 500 (Internal Server Error)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is left to be done?&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836511#M8809</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2018-07-25T15:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: geometryservice proxy error</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836512#M8810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The internal server error means that it just had an issue doing the intersect, not that you don't have your proxy setup correctly. I have see the internal server error before and restarting your ArcGIS Server sometime resolves that error if there is not something wrong with the geometries you are trying to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836512#M8810</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-25T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: geometryservice proxy error</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836513#M8811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THank you Robert. THe restart didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange behaviour.&lt;/P&gt;&lt;P&gt;Basically I am trying a polygon layer on another polygon layer, both layers with multiple features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I run this loop to capture all intersections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(i=0;i&amp;lt;secondgraphics.length;i++){&lt;BR /&gt; geometryService.intersect(firstgraphics, secondgraphics&lt;I&gt;, &lt;SPAN style="background-color: #ffffff;"&gt;this.theoutput&lt;/SPAN&gt;);&lt;BR /&gt; }&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the graphics geom come from this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; firstgraphics&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;forEach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;firstlayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstgraphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;push&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; secondgraphics&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;forEach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;secondlayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; secondgraphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;push&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that when when I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;geometryService.intersect(firstgraphics, secondgraphics&lt;I&gt;,&amp;nbsp;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;this.theoutput&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but when I use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;geometryService.intersect(secondgraphics, firstgraphics&lt;I&gt;,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;this.theoutput&lt;/SPAN&gt;&lt;SPAN&gt;);&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;then I get the 500 error!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is it possible&amp;nbsp;that the error is due to the # of features in the secondlayer?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836513#M8811</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-12-12T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: geometryservice proxy error</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836514#M8812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unfortunately I am not sure on that. I would just be guessing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 19:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/geometryservice-proxy-error/m-p/836514#M8812</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-25T19:07:05Z</dc:date>
    </item>
  </channel>
</rss>

