<?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: Staging Server error with Hosted Layers -- Can't query unless an explicit Port :6443 is appended to REST URLs. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/staging-server-error-with-hosted-layers-can-t/m-p/1086398#M30840</link>
    <description>&lt;P&gt;Found out a setting in IIS had a default proxy set going through "&lt;A href="http://localhost:5080" target="_blank"&gt;http://localhost:5080&lt;/A&gt;" which apparently breaks almost nothing except for REST calls done with the query operation.&amp;nbsp; And since that operation is what's used by Portal and web maps to retrieve data it winds up breaking a lot.&amp;nbsp; Editing web.config and setting the proxy to false fixed the issue.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 22:23:48 GMT</pubDate>
    <dc:creator>PhilipWeeks</dc:creator>
    <dc:date>2021-08-05T22:23:48Z</dc:date>
    <item>
      <title>Staging Server error with Hosted Layers -- Can't query unless an explicit Port :6443 is appended to REST URLs.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/staging-server-error-with-hosted-layers-can-t/m-p/1084129#M30803</link>
      <description>&lt;P&gt;I'm trying to troubleshoot an issue with a staging server on 10.8.&amp;nbsp; When trying to view hosted features layers I get a data error.&amp;nbsp; The browser console lists these as a CORS error but the actual response is&amp;nbsp;{"error":{"code":403,"message":"Forbidden","details":["Request denied due to lack of license."]}}.&amp;nbsp; All licenses should be up to date and what's more if I visit the REST endpoint URL I can browse to it just fine. If I try to query it I get the same error, but if I query it with the explicit Port :6443 added to the Server URL it works just fine.&amp;nbsp; Similarly if I add a hosted feature layer to a web map it doesn't load (or sometimes returns only 1 tile) but if I add it via the REST URL with the explicit port :6443 it loads in the map just fine.&lt;/P&gt;&lt;P&gt;The only thing I could find along these lines is without a web adaptor the REST URLs have that port, but the Portal is successfully configured with the web adaptor and the server is federated.&amp;nbsp; All relevant ports are opened on the Server/Portal/Datastore and I was able to validate the Datastore connection in the Server Manager.&amp;nbsp; It feels like a communication issue with the datastore as everything seems to work fine in the portal until it tries to query information in a hosted feature layer and by default it's not using the explicit port.&amp;nbsp; I'm not sure where to look next.&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Also checked the web adapter on the ArcGIS server which appears to be configured correctly as well.&amp;nbsp; I also noticed while on the server the same issue happens if I use localhost instead of the webadapter URL.&amp;nbsp;&amp;nbsp;localhost/arcgis/rest/services/Hosted/test_hosted_layer/FeatureServer/0/query gives a different error,&amp;nbsp;{"error":{"code":403,"message":"Forbidden","details":["Request to query a layer has been denied."]}}, but&amp;nbsp;localhost:6443/arcgis/rest/services/Hosted/test_hosted_layer/FeatureServer/0/query works just fine.&lt;/P&gt;&lt;P&gt;Edit2:&lt;/P&gt;&lt;P&gt;One of the weirder things I've noticed is that it'll work once in a while without an explicit port.&amp;nbsp; I'll be sitting on the screen with the error, hit refresh, then I get the query page.&amp;nbsp; Hit refresh immediately again and I'm back to the error.&amp;nbsp; That's at least consistent with the fact that adding it to a web map will sometimes get one successful tile of features displayed.&amp;nbsp; And it will always work when I have the explicit port :6443 in the URL.&amp;nbsp; It doesn't behave this way on the production server and I've gone through as many admin screens as I can looking for differences between the two but haven't found any that have had an effect.&lt;/P&gt;&lt;P&gt;Edit3:&lt;/P&gt;&lt;P&gt;Redid the licensing provisioning file and removed the existing datastore and installed it on the same system to see if it's an inter-machine communication issue, same result.&amp;nbsp; Pretty much any ArcGIS server site works just fine, manager, rest details, any operations other than query, but going to query returns the&amp;nbsp;{"error":{"code":403,"message":"Forbidden","details":["Request denied due to lack of license."]}}.&amp;nbsp; And query works just fine if port :6443 is added to the REST URL.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 18:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/staging-server-error-with-hosted-layers-can-t/m-p/1084129#M30803</guid>
      <dc:creator>PhilipWeeks</dc:creator>
      <dc:date>2021-07-30T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Staging Server error with Hosted Layers -- Can't query unless an explicit Port :6443 is appended to REST URLs.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/staging-server-error-with-hosted-layers-can-t/m-p/1086398#M30840</link>
      <description>&lt;P&gt;Found out a setting in IIS had a default proxy set going through "&lt;A href="http://localhost:5080" target="_blank"&gt;http://localhost:5080&lt;/A&gt;" which apparently breaks almost nothing except for REST calls done with the query operation.&amp;nbsp; And since that operation is what's used by Portal and web maps to retrieve data it winds up breaking a lot.&amp;nbsp; Editing web.config and setting the proxy to false fixed the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 22:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/staging-server-error-with-hosted-layers-can-t/m-p/1086398#M30840</guid>
      <dc:creator>PhilipWeeks</dc:creator>
      <dc:date>2021-08-05T22:23:48Z</dc:date>
    </item>
  </channel>
</rss>

