<?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 Querying for all Services in a Folder returns Empty List in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-all-services-in-a-folder-returns/m-p/1337265#M4588</link>
    <description>&lt;P&gt;I am trying to query for all Feature/Map Services running on one of our ArcGIS Servers and have succesfully generated a token and gotten a response back from the GET request, but the returned list of services seems to be empty when requesting from my web application. I am able to query the same endpoint using Python or Postman and get the proper response containing all of the services in the list, but I get an empty one for some reason when trying from the web application. I am wondering if there is something I have to change within my GET request of the settings of the Server so I can return the full list of services? I am able to query a sample Service Directory without issue, so its 100% something specific to the Server setup I am working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Service Directory that can be queried from Web app:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Service Directory with empty list in response with Web app:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://[our" target="_blank" rel="noopener"&gt;https://[OUR_DOMAIN]&lt;/A&gt;/arcgis/rest/services/DataWarehouse?f=pjson&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response in Postman/Python:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"currentVersion": 11.1,&lt;BR /&gt;"folders": [],&lt;BR /&gt;"services": [{"name":"DataWarehouse/Service_1","type":"FeatureServer"},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{"name":"DataWarehouse/Service_1","type":"MapServer","name":"DataWarehouse/Service_2","type":"FeatureServer"},{"name":"DataWarehouse/Service_2","type":"MapServer"}]&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response within my Web Application:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"currentVersion": 11.1,&lt;BR /&gt;"folders": [],&lt;BR /&gt;"services": []&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;My request headers:&lt;/STRONG&gt;&amp;nbsp;{"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Creating the token within my web application seems to work no problem, and to make it more confusing I can query individual Feature/Map services without issue from within the same web application and get the full json response back (so I know my token works). Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 14:11:33 GMT</pubDate>
    <dc:creator>YooHubert</dc:creator>
    <dc:date>2023-10-12T14:11:33Z</dc:date>
    <item>
      <title>Querying for all Services in a Folder returns Empty List</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-all-services-in-a-folder-returns/m-p/1337265#M4588</link>
      <description>&lt;P&gt;I am trying to query for all Feature/Map Services running on one of our ArcGIS Servers and have succesfully generated a token and gotten a response back from the GET request, but the returned list of services seems to be empty when requesting from my web application. I am able to query the same endpoint using Python or Postman and get the proper response containing all of the services in the list, but I get an empty one for some reason when trying from the web application. I am wondering if there is something I have to change within my GET request of the settings of the Server so I can return the full list of services? I am able to query a sample Service Directory without issue, so its 100% something specific to the Server setup I am working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Service Directory that can be queried from Web app:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Energy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Service Directory with empty list in response with Web app:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://[our" target="_blank" rel="noopener"&gt;https://[OUR_DOMAIN]&lt;/A&gt;/arcgis/rest/services/DataWarehouse?f=pjson&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response in Postman/Python:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"currentVersion": 11.1,&lt;BR /&gt;"folders": [],&lt;BR /&gt;"services": [{"name":"DataWarehouse/Service_1","type":"FeatureServer"},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{"name":"DataWarehouse/Service_1","type":"MapServer","name":"DataWarehouse/Service_2","type":"FeatureServer"},{"name":"DataWarehouse/Service_2","type":"MapServer"}]&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response within my Web Application:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"currentVersion": 11.1,&lt;BR /&gt;"folders": [],&lt;BR /&gt;"services": []&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;My request headers:&lt;/STRONG&gt;&amp;nbsp;{"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Creating the token within my web application seems to work no problem, and to make it more confusing I can query individual Feature/Map services without issue from within the same web application and get the full json response back (so I know my token works). Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 14:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-all-services-in-a-folder-returns/m-p/1337265#M4588</guid>
      <dc:creator>YooHubert</dc:creator>
      <dc:date>2023-10-12T14:11:33Z</dc:date>
    </item>
  </channel>
</rss>

