Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Error When Utilizing the License Manager #2188

Open
FeralCatColonist opened this issue Jan 10, 2025 · 5 comments
Open

400 Error When Utilizing the License Manager #2188

FeralCatColonist opened this issue Jan 10, 2025 · 5 comments
Labels

Comments

@FeralCatColonist
Copy link

Describe the bug
When using .admin.license.all() or .admin.license.get() the following warning is displayed before the API returns the requested information:

'listing'
not licensed by user
(Error Code: 400)
not licensed by user
(Error Code: 400)
'listing'

To Reproduce
Steps to reproduce the behavior:

import arcgis

gis = arcgis.gis.GIS("home")
licenses = gis.admin.license.all() 
print(licenses)
# licenses available, choose any
# ArcGIS Business Analyst Web and Mobile Apps, ArcGIS Community Analyst, ArcGIS Drone2Map, ArcGIS Insights, ArcGIS Pro
single_license = gis.admin.license.get("ArcGIS Pro")
print(single_license)

error:

'listing'
not licensed by user
(Error Code: 400)
not licensed by user
(Error Code: 400)
'listing'

Expected behavior
I'm unsure what is causing the issue, as per the documentation, if an organization has access to licensing from the Marketplace then those extensions may not produce valid license objects. This could possibly explains issues from the all() function, but when accessing a single, Esri license, using get() I would not expect those 400 errors to crop up.

Platform (please complete the following information):

  • Python API Version2.4.0

Additional context
This was reproduced in a standalone Conda environment with Jupyter Notebook and also utilizing an ArcGIS Online notebook.

@FeralCatColonist
Copy link
Author

@nanaeaubry
Copy link
Contributor

Hi this seems to be an Online issue where they are not cleaning up older licenses and it started at their last release in Fall 2024

@FeralCatColonist
Copy link
Author

So the assumption is that this error will persist until the next AGO release? I'm hoping/wondering they'll add the license clearing as part of the quality assurance checklist?

@nanaeaubry
Copy link
Contributor

@FeralCatColonist Yeah that's the hope. The bug got moved to their support cases and they said they where working on it so we will have to wait and see unfortunately

@nanaeaubry
Copy link
Contributor

@FeralCatColonist We can keep this issue open and Ill post any updates if we get them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants