View Single Post
  #1  
Old 03-21-2014, 08:30 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default USPS Module Errors

problem below that stop this from working, the best I know.

1. The USPS module needs to be able to have the size of the package to be able to work properly. I believe if you do not send the dimensions then it works. But 0 x 0 x 0 gives an error. See the log below:

Dimensions are missing for package; unable to calculate postage.

Array
(
[request] => http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=%3CRateV4Request+US ERID%3D%XXXXXXXXX%2...teV4Request%3E
[xml] => <RateV4Request USERID="***">
<Revision>2</Revision>
<Package ID="01">
<Service>FIRST CLASS</Service>
<FirstClassMailType>PARCEL</FirstClassMailType>
<ZipOrigination>89511</ZipOrigination>
<ZipDestination>94062</ZipDestination>
<Pounds>0</Pounds>
<Ounces>0.8</Ounces>
<Container>VARIABLE</Container>
<Size>LARGE</Size>
<Width>0.0</Width>
<Length>0.0</Length>
<Height>0.0</Height>

<Value>100.00</Value>
<AmountToCollect>100</AmountToCollect>
<Machinable>true</Machinable>
</Package>
</RateV4Request>
[response] => <?xml version="1.0" encoding="UTF-8"?>
<RateV4Response>
<Package ID="01">
<Error>
<Number>-2147219426</Number>
<Source>DomesticRatesV4;clsRateV4.ValidateDimensio n;RateEngineV4.ProcessRequest</Source>
<Description>Dimensions are missing for package; unable to calculate postage. Additional Info: All dimensions must be greater than 0.</Description>
<HelpFile/> <HelpContext>1000440</HelpContext>
</Error>
</Package>
</RateV4Response>

)
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote