Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with RestSharp 110.2.0 #204

Open
feradz opened this issue Oct 31, 2023 · 2 comments
Open

Not compatible with RestSharp 110.2.0 #204

feradz opened this issue Oct 31, 2023 · 2 comments

Comments

@feradz
Copy link

feradz commented Oct 31, 2023

mangopay2-sdk 3.12.2 throws a runtime exception/error when trying to call any API method.

For example, when I call PayOutDTO payOutResult = await _mangoPayApi.PayOuts.CreateBankWireAsync(payOut);

public async Task CreateBankWireAsync(PayOutBankWirePostDTO payOut, string idempotentKey = null)

One or more errors occurred. (Method not found: 'Void RestSharp.RestClientOptions.set_Timeout(Int32)'.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()

This error occurs because you are not targeting the latest version of RestSharp 110.2.0. 110.2.0 has breaking changes with older versions specifically RestSharp 108.0.3 which your library works with.

Please, resolve this issue ASAP because right now our integration is broken.

@feradz
Copy link
Author

feradz commented Nov 4, 2023

Any update on this issue?

@xps
Copy link
Contributor

xps commented Nov 8, 2023

I have no opinion whether MangoPay should update to the latest version of RestSharp (many of us are probably still using the older versions, and the update may break other dependencies...), but there are ways to use 2 different versions of RestSharp in the same project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants