UPS Shipping rate error's happening again

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

UPS Shipping rate error's happening again

Post by rlopez » Thu Mar 18, 2021 10:13 am

We are currently seeing UPS shipping rate errors in our logs and when testing on the live site, it is hit and miss. At times rates are being provided and other times no rates or just expedited rates are being provided. I've tested on our side and cannot find any problems. This is a Gold 12 R2 final release and I believe this is no longer supported by Able? As a note: When this happened a year or so ago, we installed a fix by able and I'm wondering if it needs to be replaced back to the original file as UPS fixed their problem a day or so after we installed the fix. Have not had any issues with this problem, up until this week.

EDIT: Here is the Warn message in my logs:

Code: Select all

Date: 3/18/2021 7:15:05 AM
Severity: Warn
Message: Error obtaining rate quote for shipping method 'UPS Ground'.
Exception: The 'br' start tag on line 8 position 21 does not match the end tag of 'H2'. Line 9, position 3.
Stack Trace:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.SendRequestToProvider(XmlDocument request, String url)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, IList`1 contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, IList`1 contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)


Date: 3/18/2021 7:15:05 AM
Severity: Warn
Message: Error obtaining rate quote for shipping method 'UPS Next Day Air®'.
Exception: The remote server returned an error: (400) Bad Request.
Stack Trace:    at System.Net.HttpWebRequest.GetResponse()
   at CommerceBuilder.Shipping.Providers.UPS.UPS.SendRequestToProvider(XmlDocument request, String url)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetAllProviderShipRateQuotes(Warehouse origin, Address destination, IList`1 contents)
   at CommerceBuilder.Shipping.Providers.UPS.UPS.GetShipRateQuote(Warehouse origin, Address destination, IList`1 contents, String serviceCode)
   at CommerceBuilder.Shipping.Providers.ShippingProviderBase.GetShipRateQuote(IShipment shipment, String serviceCode)
   at CommerceBuilder.Shipping.ShipMethod.GetShipRateQuote(IShipment shipment)



If anyone else is running into this issue, please share.

Thanks again.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: UPS Shipping rate error's happening again

Post by rlopez » Sat Mar 20, 2021 9:29 am

I forgot to post back the fix to this problem we found. As it turns out we must have not gotten the memo that the Rating url setup in our UPS carrier setup was wrong. It has never been changed from the original default values of (https://www.ups.com/ups.app/xml/). After changing this value to the correct value of (https://onlinetools.ups.com/ups.app/xml/) the rate return problem has disappeared.

I guess some time back, UPS probably was retiring this url string. They must have finally pulled the plug!
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: UPS Shipping rate error's happening again

Post by AbleMods » Tue Mar 23, 2021 1:37 pm

You totally just saved multiple bacons posting your solution. Had some clients of mine with this exact issue. Much appreciated posting the solution.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: UPS Shipping rate error's happening again

Post by rlopez » Tue Mar 23, 2021 10:49 pm

Awesome! I'm glad it helped...
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

Post Reply