USPS too frequently doesn't return rates

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

USPS too frequently doesn't return rates

Post by efficiondave » Fri Apr 19, 2013 2:56 pm

We've run into a lot of cases where USPS doesn't return calculated rates. I'm adding logging to see how often this happens but it seems like it's happening at least of couple times a week. It's happening for valid addresses as if you put in the same address when testing, it comes back fine.

Are other people seeing this? Is there any retry logic built into the provider? I'm thinking I will just have it retry the request 2 or 3 times if nothing is returned with perhaps a half second delay between each request.

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: USPS too frequently doesn't return rates

Post by ForumsAdmin » Sat Apr 20, 2013 8:16 am

What error is logged when UPS fails to return rates? Is it timing out? Is it responding with an invalid response?

User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Re: USPS too frequently doesn't return rates

Post by efficiondave » Sun Apr 21, 2013 10:20 am

It doesn't appear any errors are getting logged currently. Should there be. I haven't done the "Enable Debug Mode" as the associated warning has dissuaded me, "This should only be enabled at the direction of qualified support personnel." and, I'd rather only see messages when it doesn't return something.

User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Re: USPS too frequently doesn't return rates

Post by efficiondave » Sun Apr 21, 2013 10:24 am

Looking further back in my app_log files, I did find two errors files but only when I went all the way back to Feb 7 and we know we've had this a lot more than 2 times in the last 2.5 months.

WARN 2013-03-08 09:30:12,186 51582654ms Object a - Failed to obtain rate quote for the given ship method 'USPS Priority Mail International'

WARN 2013-02-10 12:19:57,132 19453427ms Object a - Failed to obtain rate quote for the given ship method 'USPS Priority Mail International'

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: USPS too frequently doesn't return rates

Post by jmestep » Mon Apr 22, 2013 5:48 am

I have seen multiple error messages re: USPS on various sites. It happens regularly, but not overwhelmingly. My thought has been "Its the post office, what do you expect?". There don't seem to be as many message for UPS.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Re: USPS too frequently doesn't return rates

Post by efficiondave » Mon May 06, 2013 1:34 pm

It turns out this was happening for orders that include a product with weight = 0.

Post Reply