Skip to content

Okta.Sdk.ApiClient calls MaxTimeout property from RestSharp which was removed in v113.0 #824

@mrubackyst

Description

@mrubackyst

Describe the bug?

RestSharp v113.0 removed an obsolete property RestClientOptions.MaxTimeout which is replaced by the Timeout property: restsharp/RestSharp@25922ce#diff-d18e201ce7f91938397cfcc7db922ba32ca3ee83db391753e27eff428104f132L189

Okta.Sdk.ApiClient still calls MaxTimeout which makes it incompatible with RestSharp v113 and results in a MissingMethodException:

clientOptions.MaxTimeout = configuration.ConnectionTimeout ?? Configuration.DefaultConnectionTimeout;

What is expected to happen?

Okta.Sdk.ApiClient.GetConfiguredClient() should succeed with any version of RestSharp >= v112.0

What is the actual behavior?

Okta.Sdk.ApiClient.GetConfiguredClient() fails with MissingMethodException when used with RestSharp >= v113.0

Reproduction Steps?

Call Okta.Sdk.ApiClient.GetConfiguredClient() with your app having a dependency on RestSharp v113.0

Additional Information?

No response

.NET Version

10.0.101

SDK Version

10.0.101

OS version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions