Page 1 of 1

UPS errors in log

Posted: Fri Mar 21, 2008 9:03 am
by Will
We went live Tuesday afternoon. Since then we've logged 14 errors.

All but one are:
"Error obtaining rate quote for shipping method 'UPS Ground'.
The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.; Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
The severity is "Warn".

Is anyone else getting this? Should I be worried about it? Not hearing any complaints from customers.

Thanks.

Posted: Fri Mar 21, 2008 9:11 am
by compunerdy
I get these regularly also.

Posted: Fri Mar 21, 2008 10:10 am
by jmestep
We got these all the time in 5.5. If the UPS site is slow for some reason, the page times out. Logan gave us a fix-- maybe someone can adapt it for 7. Here it is in 5.5 code and we had to put it on shipping and payment pages:

Code: Select all

'replaced by Logan for timeout issue curTotalCost = cbShippingCalculator.CalculateShipping(objToken, objBasket)
			'start replace
			Dim maxRetries As Integer = 3
            Dim tryNumber As Integer = 1
            Dim shippingCalculated As Boolean = False
            While ((tryNumber <= maxRetries) AND (Not ShippingCalculated))
                Try
                    cbShippingCalculator.CalculateShipping(objToken, objBasket)
					'qrzyweasel below
					customShipGatewayInterfaceWrapper.ConvertBasketShippingItems(objToken,objBasket)
                    shippingCalculated = True
                Catch
                    tryNumber = tryNumber + 1
                    If (tryNumber > maxRetries) Then throw
                End Try
            End While
			'end replace