I've been receiving the following errors after updating the module to the dev version. I've followed everything as recommended in #441708: Errors/Warnings when trying to checkout after Canada Post quote received?, but it's still occurring.

The user sees:

There were problems getting a shipping quote. Please verify the delivery and product information and try again.
If this does not resolve the issue, please call in to complete your order.

And the log reports:

Type	uc_canadapost
Date	Monday, July 4, 2011 - 16:29
User	admin
Location	/cart/checkout/shipping/quote
Referrer /cart/checkout
Message	Shipping failed. Request was: <?xml version="1.0" ?><eparcel><language>en</language><ratesAndServicesRequest><merchantCPCID>COMPANYNAME</merchantCPCID><fromPostalCode>M3J2B9</fromPostalCode><turnAroundTime></turnAroundTime><itemsPrice>374.949957</itemsPrice><lineItems><item><quantity>1</quantity><weight>2</weight><length>1</length><width>1</width><height>1</height><description>6 items</description><readyToShip /></item></lineItems><city>Toronto</city><provOrState>ON</provOrState><country>CA</country><postalCode>M5S1X0</postalCode></ratesAndServicesRequest></eparcel>, response was <?xml version="1.0" ?> <!DOCTYPE eparcel [ <!ELEMENT eparcel (error)> <!ELEMENT error (statusCode,statusMessage*, requestID)> <!ELEMENT statusCode (#PCDATA)> <!ELEMENT statusMessage (#PCDATA)> <!ELEMENT requestID (#PCDATA)> ]> <eparcel> <error> <statusCode>-5000</statusCode> <statusMessage>XML parsing error. </statusMessage> <requestID>1550744</requestID> </error> </eparcel> <!--END_OF_EPARCEL-->
Severity
CommentFileSizeAuthor
#1 round.patch616 bytestr

Comments

tr’s picture

Status: Active » Needs review
StatusFileSize
new616 bytes

The only thing that looks wrong in the request is the price of the items in the order, which shows up as 374.949957. My guess is that Canada Post doesn't like more than two decimal places. I don't know how your price got to look like that, but try this patch and see if it fixes the problem.

tr’s picture

?? Does the patch fix your issue?

Anonymous’s picture

Patch applied successfully to latest dev. Now the error message does not appear in watch dog but still an issue with showing any results. This only occurs when a product kit is added to cart. All other products don't have an issue showing a result at checkout. Not sure why. Anyone have this issue?

tr’s picture

Status: Needs review » Fixed

Committed the patch. #3 sounds like a totally different problem, and something that's unlikely to be caused by this module. You should examine the Ubercart issue queue for further help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.