AnsweredAssumed Answered

Python API sending in layer id twice in the URL

Question asked by jkerr@marklogic.com on Jun 12, 2019
Latest reply on Jun 13, 2019 by EMedina-esristaff

I am using the python API in a Jupyter notebook on notebooks.esri.com and am observing that when adding a a map with one or more layers on it, the data is not showing up. I traced it back to the fact that the API is adding an extra layer id to the feature service requests when it sends in the queries. I.E. if my feature layer has a URL like "http://myhost/testing/MyData/FeatureServer/0", the query requests come to the feature service as "http://myhost/testing/MyData/FeatureServer/0/0/query?where=..."

 

Note the extra "0" in the URL. I have not seen any other Esri tools generate layer URLs like this and I don't see anything in the spec that says this should be supported. Any thoughts about what's going on?

Outcomes