<?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 JSON requests in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748911#M3558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web application that makes a series of JSON requests against services and their associated layers in the process of building a dynamic legend.&amp;nbsp; Prior to ArcGIS Server 10, everything worked fine.&amp;nbsp; However, with services hosted through ArcGIS Server 10, often the JSON request returns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":500,"message":"An unexpected error occurred processing the request.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The odd part is that the service can work fine for awhile, and then at a seemingly random point in time it will stop returning the expected JSON results and instead return the error above.&amp;nbsp; Manually clearing the cache (through //server/arcgis/rest/admin) works for awhile, but eventually the error will occur again, making my current legend implementation very unreliable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few strange things typically occur as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; The entire service, in my experience, has never been affected as a whole.&amp;nbsp; Normally it's only a single feature layer under the service that generates this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; The affected feature layer still appears to load and function normally within the web app, and html requests show valid information.&amp;nbsp; It's only JSON requests that appear to be affected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does ArcGIS 10 require additional setup in order for JSON requests to work on a consistent basis?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 18:46:28 GMT</pubDate>
    <dc:creator>JasonKnisley</dc:creator>
    <dc:date>2010-10-12T18:46:28Z</dc:date>
    <item>
      <title>JSON requests</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748911#M3558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web application that makes a series of JSON requests against services and their associated layers in the process of building a dynamic legend.&amp;nbsp; Prior to ArcGIS Server 10, everything worked fine.&amp;nbsp; However, with services hosted through ArcGIS Server 10, often the JSON request returns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":500,"message":"An unexpected error occurred processing the request.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The odd part is that the service can work fine for awhile, and then at a seemingly random point in time it will stop returning the expected JSON results and instead return the error above.&amp;nbsp; Manually clearing the cache (through //server/arcgis/rest/admin) works for awhile, but eventually the error will occur again, making my current legend implementation very unreliable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few strange things typically occur as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; The entire service, in my experience, has never been affected as a whole.&amp;nbsp; Normally it's only a single feature layer under the service that generates this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; The affected feature layer still appears to load and function normally within the web app, and html requests show valid information.&amp;nbsp; It's only JSON requests that appear to be affected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does ArcGIS 10 require additional setup in order for JSON requests to work on a consistent basis?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 18:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748911#M3558</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2010-10-12T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: JSON requests</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748912#M3559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one else has experienced this?&amp;nbsp; Or is my question unclear?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748912#M3559</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2010-10-21T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON requests</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748913#M3560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have never seen the problem.&amp;nbsp; I would:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Check the logs - ArcGIS Server Manager, ArcGIS rest log, IIS log, NT event viewer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Attach a debugger to the SOC, catch all exceptions, and see if you figure out what is happenin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 10:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/json-requests/m-p/748913#M3560</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2010-10-22T10:41:01Z</dc:date>
    </item>
  </channel>
</rss>

