ordercloud-api / ordercloud-dotnet-catalyst

A foundational library for OrderCloud integrations and server-side projects in .NET
Apache License 2.0
9 stars 15 forks source link

Fix the 3 failing use cases of the ordercloud_error_should_be_forwarded test. #48

Closed smitbmx closed 2 years ago

smitbmx commented 2 years ago

The 3 Use-Cases of the ordercloud_error_should_be_forwarded test are failing;

  1. [TestCase(false, 401)]
  2. [TestCase(false, 403)]
  3. [TestCase(false, 500)]

Exception:

Flurl.Http.FlurlParsingException : Response could not be deserialized to JSON: GET http://localhost/demo/shop
  ----> Newtonsoft.Json.JsonSerializationException : Error converting value "hello shopper!" to type 'OrderCloud.Catalyst.ErrorList'. Path '', line 1, position 16.
  ----> System.ArgumentException : Could not cast or convert from System.String to OrderCloud.Catalyst.ErrorList.