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

okta/api_client.py — APIClient::form_response_body — AttributeError: 'str' object has no attribute 'items' #393

Open
leha007 opened this issue Mar 21, 2024 · 0 comments

Comments

@leha007
Copy link

leha007 commented Mar 21, 2024

Getting this error when trying to list groups

client: OktaClient
users, _, error = await client.list_group_users(groupId=group_id)

This call triggers the next Exception:

    users, _, error = await client.list_group_users(groupId=group_id)
  File "okta_api/okta_client_wrapper.py", line 56, in wrapped
    result = await method(*args, **kwargs)
  File "okta_api/okta_client_wrapper.py", line 128, in wrapped
    return await safe_read_all(func, *args, **kwargs)
  File "okta_api/okta_client_wrapper.py", line 106, in wrapped
    output = await func(*args, **kwargs)
  File "okta_api/okta_client_wrapper.py", line 159, in read_all
    casted_results = [_type(APIClient.form_response_body(item)) for item in iteration_result]
  File "okta_api/okta_client_wrapper.py", line 159, in <listcomp>
    casted_results = [_type(APIClient.form_response_body(item)) for item in iteration_result]
  File "okta/api_client.py", line 22, in form_response_body
    for key, val in body.items():

Runtime: CPython==3.11.8
okta==2.9.5

Okta Classic — Version 2024.03.1 C

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

No branches or pull requests

1 participant