Coder Social home page Coder Social logo

Comments (6)

nwithan8 avatar nwithan8 commented on August 12, 2024 1

Hello, thanks for reaching out!

We are actually right now in the process of exploring dropping RestSharp as a dependency from our library, since it's not being used. That should remove the dependency conflict from your system. We'll keep you updated on the process!

from easypost-csharp.

MaxwellDAssistek avatar MaxwellDAssistek commented on August 12, 2024 1

@nwithan8 Unfortunately, I get the following exception when using the latest RestSharp:

Error: System.MissingMethodException: Method not found: 'Void RestSharp.RestClient..ctor(System.Net.Http.HttpClient, RestSharp.RestClientOptions, Boolean)'.
  at EasyPost._base.EasyPostClient..ctor(String apiKey, String baseUrl, HttpClient customHttpClient)
  at EasyPost.Client..ctor(String apiKey, String baseUrl, HttpClient customHttpClient)
  at LogisticsBusinessLogic.Services.ShippingService.WebhookTest() in <SNIP>\ShippingService.cs:line xx

Downgrading RestSharp to 108.0.1 fixes this.

If the new major version is coming soon we may as well wait for it.

from easypost-csharp.

MaxwellDAssistek avatar MaxwellDAssistek commented on August 12, 2024 1

@nwithan8 We are using .NET 7.

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

Hey @MaxwellDAssistek , wanted to let you know we are in officially in the process of dropping RestSharp in our next major release (along with a number of breaking changes and improvements).

While we encourage you to update the the latest version when it gets released, in the meantime, we've released v4.6.1, which simply extends the RestSharp dependency range so you'll be able to use RestSharp v110 in your solution.

I'm going to go ahead and close this ticket, but let us know if there's anything else you need help with!

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

We'll look into this and see if we can fix it. Thanks for reporting.

@MaxwellDAssistek could you share what .NET version you are running on?

from easypost-csharp.

nwithan8 avatar nwithan8 commented on August 12, 2024

@MaxwellDAssistek Hey Max, it seems there was some breaking change between v108 and v109 of RestSharp that makes it incompatible with our library. We've recalled v4.6.1 and replaced it with v4.6.2, which still locks to RestSharp v108.

In your case, if downgrading to RestSharp v108 is not an option, we just released v5.0.0 of our library, which drops RestSharp as a dependency entirely. It is a major version bump, however, and has some significant breaking changes. You can see our Upgrade Guide to see what updating to the new version would entail.

I'm going to go ahead and close this ticket. Feel free to reopen it if you have any more questions or issues.

from easypost-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.