Comments (6)
@achantavy Thank you for the congrats! We did make a bunch of changes in this version of the SDK.
With these changes were changes to the errors. You can find the new error classes in the okta/errors Directory
All Okta errors will be wrapped up in the OktaAPIError class and yes, we still expose the Okta error code in the class.
Please let us know if you have any other concerns or issues with our new SDK version
from okta-sdk-python.
I'm doing a similar transition from version 0.0.4 to 1.x and discovered this change. When I tried using the new error classes I'm getting an exception.
TypeError: catching classes that do not inherit from BaseException is not allowed
It looks like the base error class does not inherit from Exception or BaseException which is a requirement.
from okta-sdk-python.
@camillsir This Error
class wasn't designed to be an Exception. It is used just to pass specific error messages. On the other hand, your notice is really good. How did you want to use it? Maybe, it's worth to make custom exceptions.
from okta-sdk-python.
Internal Ref: OKTA-347117
from okta-sdk-python.
@camillsir Custom exceptions added with version 1.1.0 https://github.com/okta/okta-sdk-python#exceptions
Please let us know if you have any other concerns or issues with our new SDK version.
from okta-sdk-python.
I'm closing this issue as resolved. @achantavy @camillsir if you still have questions, feel free to reopen or create a new issue.
from okta-sdk-python.
Related Issues (20)
- 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
- `forgot_password_generate_one_time_token` not-functional in private key mode HOT 1
- POST /token in body, not in url
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.