Esri / arcgis-python-api

Documentation and samples for ArcGIS API for Python
https://developers.arcgis.com/python/
Apache License 2.0
1.86k stars 1.09k forks source link

Unable to list layers for gotten item on Portal 10.9.1 when authenticated using IWA from a Pro 3.2 python environment #1718

Open alex-friant opened 9 months ago

alex-friant commented 9 months ago

Describe the bug When trying to list layers ("my_hfl.layers") the error results: A general error occurred: 'Response' object has no attribute 'path_url'

To Reproduce Steps to reproduce the behavior: Using jupyter notebook:

from arcgis.gis import GIS
gis = GIS("https://url_to_your/portal") # using IWA
my_hfl = gis.content.get('id_of_your_hosted_feature_layer_in_portal_goes_here')
my_hfl.layers

error:

A general error occurred: 'Response' object has no attribute 'path_url'

Screenshots image

Expected behavior I expect a list to be returned, like this: image

Platform (please complete the following information):

Additional context This works if my version of Pro is 2.9.10

alex-friant commented 9 months ago

If it helps, this scenario does work, however:

Same versions of everything.