Coder Social home page Coder Social logo

Comments (5)

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

@JonsSpaghetti Thank you for a detailed description of the issue. I'm looking into it. Is it a blocker? I don't see some easy workaround to unblock you, but writing own retry wrapper around request and playing with rateLimit configuration (set maxRetries to 0 to disable our retry logic):

# use lib retry or write own retry logic 
from retry.api import retry_call


# assume problem is while calling method "list_users"
async def main():
    config = {'rateLimit': {'maxRetries': 0}}
    client = OktaClient(config)
    retry_call(client.list_users, tries=3)

from okta-sdk-python.

JonsSpaghetti avatar JonsSpaghetti commented on July 22, 2024

@serhiibuniak-okta I saw that you posted a fix for this, thanks for the quick turnaround. The solution you posted makes sense to me so if we need to do this immediately I'll consider setting maxRetries to 0 and using separate retry logic or something similar.

Do you have any estimate when the change will go in/be available in a published version of the SDK?

from okta-sdk-python.

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

@JonsSpaghetti The issue was in outdated date format. For easier workaround you can try reassign constant before any other import:

from okta import constants
constants.DATE_FORMAT = "%a, %d %b %Y %H:%M:%S %Z"

# then rest of imports and code:
from okta.client import Client as OktaClient

Hope, this helps. And regarding estimates about published version: I will clarify from Monday and reply with estimations.

from okta-sdk-python.

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

@JonsSpaghetti This fix will be included in published version soon, next upcoming release.

from okta-sdk-python.

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

@JonsSpaghetti Release v1.3.2 is ready, I'm closing this issue as resolved.

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.