Comments (6)
Hi, @bnknkl . Thanks for posting this issue. Usually, this kind of error appears when API endpoint accept, for example, only GET requests and we're trying to send, for example, POST request.
Also, I used your code and it works for me. Thus I need a bit more details:
- do you use the latest version of this sdk? (1.4.0)
- does your code work without query_params? i.e.
users, response, error = await okta_client.list_group_users(groupId=okta_group)
from okta-sdk-python.
Hi @serhiibuniak-okta, thank you for your response.
- Yes, using 1.4.0
- Code still throws the same error response when removing the
query_params=params
statement
from okta-sdk-python.
@bnknkl it's very strange. Can we simplify your method to double-check if the error comes from list_group_users?
Please, try to run with this method instead of that long method and check if error exists:
async def okta_group_members():
okta_client = OktaClient(okta_config)
users, response, error = await okta_client.list_group_users(groupId=okta_group)
return users
from okta-sdk-python.
I stripped it down to the block you recommended and, while it's not throwing an error anymore, it's also returning None
as the member list, even though the group is populated.
from okta-sdk-python.
Nevermind, I resolved this - was user error for the last piece.
Looks good from here, thank you!
from okta-sdk-python.
@bnknkl Thank you for confirming that everything is fine. Feel free to reopen issue or create a new one in case of any questions.
from okta-sdk-python.
Related Issues (20)
- Error importing Client in 2.9+ HOT 6
- AttributeError: 'SamlApplication' object has no attribute 'list_application_users' HOT 2
- Partial Update of Attribute Statement values using SDK HOT 2
- Getting okta models has no attribute AutoLoginApplication
- Add support for managing Group Owners HOT 1
- Okta HTTP 500 E0000009 Internal Server Error when creating MultifactorEnrollmentPolicy HOT 1
- Response Headers not updated after next request HOT 2
- Listing factors fails if a `signed_nonce` factor is encountered HOT 8
- This SDK would let me retrieve/list all the users assigned to each application for every app in OKTA? HOT 5
- Can the README be made clearer that there are no plans to update this library to the next SDK version? HOT 2
- Access token expiry not handled when using OAuth 2.0 HOT 4
- Allow latest aenum release
- Exception raised when making an OAuth 2.0 API request without necessary scopes is unhelpful
- Duplicate log lines when creating multiple client instances
- Reading OKTA Applications does not include configuredAttributeStatements HOT 1
- đĄ âšī¸ Update on the Python SDK Refresh âšī¸ đĄ HOT 4
- Users are missing when calling list_users() HOT 1
- [Feature Request] Device Assurance API Support
- Python 3.11 not supported? HOT 1
- error: client_assertion token has an expiration too far into the future HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-sdk-python.