Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2008
    Posts
    43
    Plugin Contributions
    0

    Default USPS Timing out and not returning rates

    I'm trying to sort out the USPS shipping module on a site and have followed all the destructions, have the API information put in, even went so far as to have USPS check to see if the IP address was blocked and any such blocks removed if any.... but still I get this:


    United States Postal Service
    An error occurred in obtaining USPS shipping quotes.
    If you prefer to use USPS as your shipping method, please try refreshing this page, or contact the store owner.

    The debug log shows this:

    2020-12-09 03:15:54: USPS build: 2020-09-24 K11

    Server: production
    Quote Request Rate Type: Online
    Quote from main_page: checkout_shipping
    USPS Options (weight, time): Display transit time
    USPS Domestic Transit Time Calculation Mode: CUSTOM
    Cart Weight: 0.5
    Total Quote Weight: 0.5 Pounds: 0 Ounces: 8
    Maximum: 50 Tare Rates: Small/Medium: 0 Large: 0
    Handling method: Order Handling fee Domestic: $3.00 Handling fee International: $10.00
    Decimals: 3
    Domestic Length: 8.625 Width: 5.375 Height: 1.625
    International Length: 9.50 Width: 1.0 Height: 5.50
    All Packages are Machinable: False
    Enable USPS First-Class filter for US shipping: True
    Sorts the returned quotes: Unsorted

    ZipOrigination: 92065
    ZipDestination: Postcode: 32570 Country: United States City: Milton State: Florida
    Order SubTotal: $34.95
    Order Total: $34.95
    Uninsurable Portion: $0.00
    Insurable Value: $34.95

    2020-12-09 03:15:54: Sending request to USPS

    2020-12-09 03:16:09: ==================================

    SENT TO USPS:

    <RateV4Request USERID="464VALHA6361"><Revision>2</Revision>
    <Package ID="0"><Service>First Class Commercial</Service><FirstClassMailType>PACKAGE SERVICE</FirstClassMailType><ZipOrigination>92065</ZipOrigination><ZipDestination>32570</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>34.95</Value><SpecialServices> <SpecialService>100</SpecialService>
    </SpecialServices><Machinable>FALSE</Machinable></Package>
    <Package ID="1"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>92065</ZipOrigination><ZipDestination>32570</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>34.95</Value><SpecialServices> <SpecialService>100</SpecialService>
    </SpecialServices><Machinable>FALSE</Machinable></Package>
    <Package ID="2"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>92065</ZipOrigination><ZipDestination>32570</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>34.95</Value><SpecialServices> <SpecialService>100</SpecialService>
    </SpecialServices><Machinable>FALSE</Machinable></Package>
    </RateV4Request>


    RESPONSE FROM USPS:

    ==================================
    CommErr (should be 0): 28 - connect() timed out!

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

    USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US
    Domestic Services Selected:
    Insurance
    I read another thread about possible CURL problems so here's my CURL settings from the ADMIN>TOOLS>SERVER INFORMATION>

    cURL support enabled
    cURL Information 7.19.7
    Age 3
    Features
    AsynchDNS No
    CharConv No
    Debug No
    GSS-Negotiate Yes
    IDN Yes
    IPv6 Yes
    krb4 No
    Largefile Yes
    libz Yes
    NTLM Yes
    SPNEGO No
    SSL Yes
    SSPI No
    Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
    Host x86_64-redhat-linux-gnu
    SSL Version NSS/3.44
    ZLib Version 1.2.3
    libSSH Version libssh2/1.4.2
    Have been on the phone with USPS several times to ensure the site is using the production server and everything, but we're still getting the timeout error and they insist the problem is on my end.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: USPS Timing out and not returning rates

    "Connect timed out" is typically a server firewall issue.
    Specifically, curl (the tool used to make a web request to the external server) was able to lookup the address of the USPS server and initiate the request, but the USPS server didn't respond. This means either your request didn't get out past your server's firewall, or the response didn't get back to you through your server's firewall.

    The only team who can fix this is your server administration team, ie: your hosting company.

    Contact their support team.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: USPS Timing out and not returning rates

    Quote Originally Posted by Wulf359 View Post
    United States Postal Service
    An error occurred in obtaining USPS shipping quotes.
    If you prefer to use USPS as your shipping method, please try refreshing this page, or contact the store owner.
    Over the past couple days, we've seen the same response after a 15 secondish page parse time. But, waiting a few seconds and refreshing once or twice usually received a normal response.

    Based upon the lines at the post office, I just assumed the USPS servers were overloaded with requests and didn't bother with looking at logfiles.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  4. #4
    Join Date
    Feb 2008
    Posts
    43
    Plugin Contributions
    0

    Default Re: USPS Timing out and not returning rates

    Quote Originally Posted by DrByte View Post
    "Connect timed out" is typically a server firewall issue.
    Specifically, curl (the tool used to make a web request to the external server) was able to lookup the address of the USPS server and initiate the request, but the USPS server didn't respond. This means either your request didn't get out past your server's firewall, or the response didn't get back to you through your server's firewall.

    The only team who can fix this is your server administration team, ie: your hosting company.

    Contact their support team.
    Thank you, working on that now !!!

 

 

Similar Threads

  1. v155 USPS not returning rates
    By jeking in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 8 Dec 2016, 01:29 AM
  2. v154 USPS module returning different rates for same weights
    By Phil S in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 19 Dec 2015, 05:21 AM
  3. v151 USPS not returning rates with specific product combinations
    By sports guy in forum Addon Shipping Modules
    Replies: 15
    Last Post: 21 Dec 2014, 05:27 PM
  4. v151 USPS Standard Post Setting is not returning rates
    By sports guy in forum Addon Shipping Modules
    Replies: 22
    Last Post: 10 Oct 2014, 06:12 PM
  5. v139h USPS Shipping Module Not Returning Rates
    By WiccanWitch420 in forum General Questions
    Replies: 3
    Last Post: 10 Feb 2014, 05:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR