nopCommerce version 3.0
I was seeing a lot of entries on my logs with this error:
Shipping (UPS (United Parcel Service)). UPS Error returned: UPS Rating Error, Error Code: 111210, Error Desc: The requested service is unavailable between the selected locations.
After troubleshooting I found that this errors was being generated on the shipping service (Nop.Service/Shipping/ShippingService.cs) in the method called GetShippingOptions.
The UPS shipping module was throwing that error when users were selecting "Spain" as the shipping country. I do have US and other countries enabled for shipping.
I had to comment out the line bellow doing the logging
foreach (string error in getShippingOptionResponse.Errors)
{
result.AddError(error);
//_logger.Warning(string.Format("Shipping ({0}). {1}", srcm.PluginDescriptor.FriendlyName, error));
}
Then I move that line at the end of the method like this:
if (result.Errors.Count > 0)
{
foreach (var item in result.Errors)
{
_logger.Warning(string.Format("Error on GetShippingOptions ({0}).", item));
}
}
Because the Error collection gets clear between those two section if another shipping plug in is able to calculate the cost for Spain:
if (result.ShippingOptions.Count > 0 && result.Errors.Count > 0)