You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the late response! The errors you are encountering are not platform dependent errors and is actually relevant to the entire SDK. We have improved the error messages with the latest SDKs and hope that addresses your issues. I will leave it open for discussion unless your okay with closing it.
0.1.1 was the current release at the time. Great you addressed that. The current state of typed Errors still leaves room for improvement though:
Now I get a generic Exception of type Exception for all but RateLimitExceededExceptions. From a user perspective it makes a difference if the vault is missing, the item is missing or if it is not unique. One might be expected (and caught) the other might my unexpected and should cause the program to terminate.
Right now the only way to deal with it is to compare error messages - which I assume might be tweaked in between versions.
Ahh yes, error messages will get updated and more similar to RateLimitExceededException can be added to the SDKs. I will raise this internally and to the product team for prioritization.
Any update to this issue? I was trying to write clean exception handlers for RateLimitExceededException but they don't seem to be hitting, just generic Exceptions raised, and I have to string-match against the error text (pretty brittle!)
Activity
MOmarMiraj commentedon Apr 9, 2025
Hi @tback,
Sorry for the late response! The errors you are encountering are not platform dependent errors and is actually relevant to the entire SDK. We have improved the error messages with the latest SDKs and hope that addresses your issues. I will leave it open for discussion unless your okay with closing it.
tback commentedon Apr 9, 2025
0.1.1 was the current release at the time. Great you addressed that. The current state of typed Errors still leaves room for improvement though:
Now I get a generic Exception of type
Exceptionfor all butRateLimitExceededExceptions. From a user perspective it makes a difference if the vault is missing, the item is missing or if it is not unique. One might be expected (and caught) the other might my unexpected and should cause the program to terminate.Right now the only way to deal with it is to compare error messages - which I assume might be tweaked in between versions.
MOmarMiraj commentedon Apr 9, 2025
Ahh yes, error messages will get updated and more similar to
RateLimitExceededExceptioncan be added to the SDKs. I will raise this internally and to the product team for prioritization.Thanks for the context!
luckman212 commentedon Jun 2, 2026
Any update to this issue? I was trying to write clean exception handlers for
RateLimitExceededExceptionbut they don't seem to be hitting, just generic Exceptions raised, and I have to string-match against the error text (pretty brittle!)onepassword-sdk-0.4.0