We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling zone API (list_network_zones()) on my OKTA preview tenant with default zones in it: Getting exception from the API call:
okta_api.errors.okta_errors_generic.OktaGenericError: 0
From the debugging it's clearly seen that the method expects to get collection of type list but getting dictionary instead.
This line throws the error
if not OktaCollection.is_formed(collection[index], data_type):
Problem originates from here
class NetworkZone( OktaObject ) ... self.asns = OktaCollection.form_list( config["asns"] if "asns"\ in config else [], str )
Data got from OKTA
{ "type":"DYNAMIC_V2", "id":".<reducted>", "name":"DefaultEnhancedDynamicZone", "status":"INACTIVE", "usage":"BLOCKLIST", "created":"2024-08-09T01:16:38.000Z", "lastUpdated":"2024-08-11T15:31:59.000Z", "system":true, "locations":{ "include":[ ], "exclude":[ ] }, "ipServiceCategories":{ "include":[ "ALL_ANONYMIZERS" ], "exclude":[ ] }, "asns":{ "include":[ ], "exclude":[ ] }, "links":{ "activate":{ "href":"https://<reducted>.oktapreview.com/api/v1/zones/<reducted>/lifecycle/activate", "hints":{ "allow":[ "POST" ] } }, "self":{ "href":"https://<reducted>.oktapreview.com/api/v1/zones/<reducted>", "hints":{ "allow":[ "GET", "PUT", "DELETE" ] } } } }
OKTA package version 2.9.7
The text was updated successfully, but these errors were encountered:
FWIW, I was able to work around this by using the response directly
_, resp, _ = await client.list_network_zones() zones = resp._body
Not great...
Sorry, something went wrong.
Feels like there is no support nor response from OKTA developers / maintainers, as a paying customer this is disappointing.
No branches or pull requests
Calling zone API (list_network_zones()) on my OKTA preview tenant with default zones in it:
Getting exception from the API call:
From the debugging it's clearly seen that the method expects to get collection of type list but getting dictionary instead.
This line throws the error
Problem originates from here
Data got from OKTA
OKTA package version 2.9.7
The text was updated successfully, but these errors were encountered: