Coder Social home page Coder Social logo

Comments (6)

serhiibuniak-okta avatar serhiibuniak-okta commented on July 22, 2024

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:

  1. do you use the latest version of this sdk? (1.4.0)
  2. 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.

bnknkl avatar bnknkl commented on July 22, 2024

Hi @serhiibuniak-okta, thank you for your response.

  1. Yes, using 1.4.0
  2. Code still throws the same error response when removing the query_params=params statement

from okta-sdk-python.

serhiibuniak-okta avatar serhiibuniak-okta commented on July 22, 2024

@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.

bnknkl avatar bnknkl commented on July 22, 2024

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.

bnknkl avatar bnknkl commented on July 22, 2024

Nevermind, I resolved this - was user error for the last piece.

Looks good from here, thank you!

from okta-sdk-python.

serhiibuniak-okta avatar serhiibuniak-okta commented on July 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.