Legacy Dev Forum Posts

 View Only

Sign Up

Problem with version of webSocketSharp

  • 1.  Problem with version of webSocketSharp

    Posted 06-05-2025 18:06

    Alain_Reyes | 2020-12-21 18:33:12 UTC | #1

    Hi, We are experiencing a problem with the latest version of PureCloud C# api, we have a dependency on RestSharp ≥ 106.5.4 for internal nuget packages and that results in a exception at runtime on PureCloud Api client.

    We get the same result if we add the websocketsharp dependency as instructed in https://github.com/MyPureCloud/platform-client-sdk-dotnet.

    This is the exception we are receiving:

    System.MissingMethodException: <b>Method not found: 'Void RestSharp.RestRequest..ctor(System.String, RestSharp.Method)'.</b> at PureCloudPlatform.Client.V2.Extensions.AuthExtensions.PrepareTokenRequest(String path, Method method, Dictionary2 queryParams, Object postBody, Dictionary2 headerParams, Dictionary2 formParams, Dictionary2 fileParams, Dictionary2 pathParams, String contentType) at PureCloudPlatform.Client.V2.Extensions.AuthExtensions.CallTokenApi(ApiClient apiClient, String path, Method method, Dictionary2 queryParams, Object postBody, Dictionary2 headerParams, Dictionary2 formParams, Dictionary2 fileParams, Dictionary2 pathParams, String contentType) at PureCloudPlatform.Client.V2.Extensions.AuthExtensions.PostTokenWithHttpInfo(ApiClient apiClient, String clientId, String clientSecret, String redirectUri, String authorizationCode)

    Do you have any suggestion on how to workaround this issue?


    tim.smith | 2020-12-21 18:51:16 UTC | #2

    It sounds like you are using an incompatible version of RestSharp. The SDK expects RestSharp 106.3.1. After a quick google search for your error, it appears this is a bug found in the version of RestSharp that you're using. 106.5.4 is noted as containing the bug. https://github.com/restsharp/RestSharp/issues/1198 Note that RestSharp does not properly follow semantic versioning rules in their versions. This sometimes causes minor versions to not be backwards compatible when the version numbers indicate that it should be.


    system | 2021-01-21 18:53:38 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 9564