Quote Originally Posted by mikestaps View Post
Working on a "update" to 1.5.7c from a older version, and I can't get this module working properly.

All files in store are 1.5.7c, and a clean install of the USPS module was done.

Currently I am not getting any XML data returned...

USPS Debug contents:
Code:
2021-05-13 11:17:06: USPS build: 2021-05-05 K11a

Server: production
Quote Request Rate Type: Online
Quote from main_page: checkout_shipping
USPS Options (weight, time): --none--
USPS Domestic Transit Time Calculation Mode: NEW
Cart Weight: 0.8
Total Quote Weight: 3.8 Pounds: 3 Ounces: 13
Maximum: 50 Tare Rates: Small/Medium: 0:3 Large: 10:0
Handling method: Order Handling fee Domestic: $1.00 Handling fee International: $3.00
Decimals: 2
Domestic Length: 8.625 Width: 5.375 Height: 1.625
International Length: 8.625 Width: 5.375 Height: 1.625
All Packages are Machinable: False
Enable USPS First-Class filter for US shipping: True
Sorts the returned quotes: Price-LowToHigh

ZipOrigination: 48348
ZipDestination: Postcode: 48353 Country: United States City: Hartland State: Michigan
Order SubTotal: $25.00
Order Total: $26.50
Uninsurable Portion: $0.00
Insurable Value: $26.50

2021-05-13 11:17:06: Sending request to USPS

2021-05-13 11:17:07: ==================================

SENT TO USPS:

<RateV4Request USERID="XXX"><Revision>2</Revision>
<Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
<Package ID="1"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package>
</RateV4Request>


RESPONSE FROM USPS:

==================================
CommErr (should be 0): 0 -

==================================

USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US
Domestic Services Selected:

2021-05-13 11:17:07: RESPONSE FROM USPS:
==================================
============

RAW XML FROM USPS:
This is happening on both the test and production servers.

The store files are in a test folder on the site currently so they are not "public", I am wondering if the directory of the store is making a difference? or if it could be something else?

Any help would be GREATLY appreciated
Thanks to @mikestaps for granting me access to his site. It 'looks like' the culprit is the site's CURL (v7.77.0) version. Updating the following line (in the quoteLogCurlResponse class method):
Code:
        $message .= 'CommErr (should be 0): ' . $this->commErrNo . ' - ' . $this->commError . ' - ' .  json_encode($this->commInfo) . "\n\n";
... indicated that the curl http-code returned was '400' (Bad Request). That's why there's no XML returned for the quotes. Not clear as to what CURL v7.77's issue(s) is/are, but it might be worth asking the webhost to downgrade the CURL version on the site.