<?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 Koop custom provider - /FeatureServer endpoint not working in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/koop-custom-provider-featureserver-endpoint-not/m-p/1365546#M6880</link>
    <description>&lt;P&gt;We are developing a Koop custom provider and plugin for CosmosDB.&amp;nbsp; We have a substantial amount of items stored in CosmosDB with latitude and longitude.&amp;nbsp; The provider is translating the CosmosDB item properties to JSON and serving them as a Geoservice.&lt;/P&gt;&lt;P&gt;Calls to /rest/services/FeatureServer/0/query are working.&amp;nbsp; Data is returned and the request finishes in 1-3 seconds, so we're happy with this performance.&lt;/P&gt;&lt;P&gt;The problem is when we try to add the URL as a new item in ArcGIS Portal.&amp;nbsp; We've deployed our Koop server instance to Azure as a docker container and running as an app service.&amp;nbsp; We can access it from anywhere on the web via Postman or a browser and it returns query results.&amp;nbsp; But the endpoint /FeatureServer fails.&amp;nbsp; It fails without any details in Portal.&amp;nbsp; For comparison we tried to add the URL for the built-in github provider that comes with the koop sample app.&amp;nbsp; This succeeds.&amp;nbsp; So my question is, what additional configuration is required when writing a custom provider to allow ArcGIS Portal to add it as an item?&lt;/P&gt;&lt;P&gt;One difference I have noticed between the built-in github provider and our custom CosmosDB provider, is that the github provider responds to calls to /FeatureServer and displays the service's JSON properties.&amp;nbsp; When I try to call our custom provider at /cosmosdb/rest/services/FeatureServer via Postman I get this response:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"invalid extent passed in metadata"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I didn't see anywhere in the Koop docs explaining how to configure the service's properties.&amp;nbsp; Is this explained anywhere?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 Jan 2024 21:12:21 GMT</pubDate>
    <dc:creator>LNX</dc:creator>
    <dc:date>2024-01-02T21:12:21Z</dc:date>
    <item>
      <title>Koop custom provider - /FeatureServer endpoint not working</title>
      <link>https://community.esri.com/t5/developers-questions/koop-custom-provider-featureserver-endpoint-not/m-p/1365546#M6880</link>
      <description>&lt;P&gt;We are developing a Koop custom provider and plugin for CosmosDB.&amp;nbsp; We have a substantial amount of items stored in CosmosDB with latitude and longitude.&amp;nbsp; The provider is translating the CosmosDB item properties to JSON and serving them as a Geoservice.&lt;/P&gt;&lt;P&gt;Calls to /rest/services/FeatureServer/0/query are working.&amp;nbsp; Data is returned and the request finishes in 1-3 seconds, so we're happy with this performance.&lt;/P&gt;&lt;P&gt;The problem is when we try to add the URL as a new item in ArcGIS Portal.&amp;nbsp; We've deployed our Koop server instance to Azure as a docker container and running as an app service.&amp;nbsp; We can access it from anywhere on the web via Postman or a browser and it returns query results.&amp;nbsp; But the endpoint /FeatureServer fails.&amp;nbsp; It fails without any details in Portal.&amp;nbsp; For comparison we tried to add the URL for the built-in github provider that comes with the koop sample app.&amp;nbsp; This succeeds.&amp;nbsp; So my question is, what additional configuration is required when writing a custom provider to allow ArcGIS Portal to add it as an item?&lt;/P&gt;&lt;P&gt;One difference I have noticed between the built-in github provider and our custom CosmosDB provider, is that the github provider responds to calls to /FeatureServer and displays the service's JSON properties.&amp;nbsp; When I try to call our custom provider at /cosmosdb/rest/services/FeatureServer via Postman I get this response:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"invalid extent passed in metadata"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I didn't see anywhere in the Koop docs explaining how to configure the service's properties.&amp;nbsp; Is this explained anywhere?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jan 2024 21:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/koop-custom-provider-featureserver-endpoint-not/m-p/1365546#M6880</guid>
      <dc:creator>LNX</dc:creator>
      <dc:date>2024-01-02T21:12:21Z</dc:date>
    </item>
  </channel>
</rss>

