Skip to content

PrestaSharp not working with latest RestSharp #483

@tomascrespo

Description

@tomascrespo

Hi!

I have been using PrestaSharp 1.2.9 (last from NuGet) successfully for a long a time but now I received a notification that my RestSharp version had a vulnerability, so I updated RestSharp to 112.1.0, but now PrestaSharp does not work.

When I try to get orders from OrderFactory

OrderFactory orders = new OrderFactory(baseUrl, account, password);
Dictionary<string, string> filter = new Dictionary<string, string>();
filter.Add("date_add", "[" + from + "," + to + "]");
List<order> prestaSharpOrders = new List<order>();
prestaSharpOrders = orders.GetByFilter(filter, "id_DESC", null);

I get the exception:

System.MissingMethodException
  HResult=0x80131513
  Mensaje = Método no encontrado: 'RestSharp.IRestRequest RestSharp.RestRequest.AddParameter(System.String, System.Object)'.
  Origen = Bukimedia.PrestaSharp
  Seguimiento de la pila:
   at Bukimedia.PrestaSharp.Factories.RestSharpFactory.RequestForFilter(String resource, String display, Dictionary`2 filter, String sort, String limit, String rootElement)
   at Bukimedia.PrestaSharp.Factories.GenericFactory`1.GetByFilter(Dictionary`2 Filter, String Sort, String Limit)

Could someone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions