News:

Support the VirtueMart project and become a member

Main Menu

USPS Shipping Module V4.3 Returning Weird Error & Not Working

Started by CreativeProStudio, April 25, 2012, 20:25:54 PM

Previous topic - Next topic

CreativeProStudio

Joomla Version 1.5.23
Virtuemart Version 1.1.9
Site URL: www.usalaserpro.com

I have The USPS Shipping module v4.3 supporting USPS API v4 from Chaz Mezan, Corey Koltz, VM Community installed and configured. I am using the production server supplied by the USPS (http://production.shippingapis.com) and everything else appears to be correct. I also have UPS configured and it seems to be working.

When I place a test order, I get UPS shipping options but not USPS. I switched to debug mode and get the following for USPS:

XML Post:
http://http://www.name.com/production.shippingapis.com/shippingapi.dll?API=RateV4&XML=<RateV4Request USERID="XXXXXXX" PASSWORD="XXXXXX"><Revision/><Package ID="0"><Service>All</Service><ZipOrigination>75704</ZipOrigination><ZipDestination>31069</ZipDestination><Pounds>2</Pounds><Ounces>1</Ounces><Container/><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.name.com/production.shippingapis.com/shippingapi.dll">here</a>.</p>
</body></html>


The site is hosted on name.com and it looks like that is being inserted into the USPS production server URL. Should that be happening? Is that why it isn't working? And, of course, how do I fix it?



Modified by Reggie to remove username/password from this post.

CreativeProStudio

I found the problem and thought I'd post it in case anybody runs into it.

You have to remove the "http://" from the USPS server address in the module configuration. I did that and it solved the problem.