Error Getting Rates from USPS
Error Getting Rates from USPS
Hello,
I have been getting 403: Forbidden from the USPS shipping rate calculator. I thought my API might be out of date, so I just uploaded the updated the API from viewtopic.php?f=65&t=18076
I am still getting the error. Does anyone have any ideas on how to solve or troubleshoot this further?
I have been getting 403: Forbidden from the USPS shipping rate calculator. I thought my API might be out of date, so I just uploaded the updated the API from viewtopic.php?f=65&t=18076
I am still getting the error. Does anyone have any ideas on how to solve or troubleshoot this further?
Re: Error Getting Rates from USPS
Also this error:
The underlying connection was closed: An unexpected error occurred on a receive.; Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
The underlying connection was closed: An unexpected error occurred on a receive.; Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
Not seeing those errors here but I did have two customers say they could not get a rate over the last couple of days.
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: Error Getting Rates from USPS
Have trouble to ship to UK. Currently it is showing this error when "United Kingdom" selected:
"No shipping methods are available for the current items and/or the given destination. "
All other countries are just fine
Regards
Speedy
"No shipping methods are available for the current items and/or the given destination. "
All other countries are just fine
Regards
Speedy
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
Same here.. 2 UK customers have said that.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
Here is the error.. still looking into it.
Send: API=IntlRate&XML=<?xml version="1.0" encoding="UTF-8"?><IntlRateRequest USERID="xxxxxxxxxxx"><Package ID="0"><Pounds>1</Pounds><Ounces>0</Ounces><MailType>Package</MailType><Country>Great Britain</Country></Package></IntlRateRequest>
Receive: <?xml version="1.0" encoding="UTF-8"?>
<IntlRateResponse><Package ID="0"><Error><Number>-2147218043</Number><Source>;IntlRateV2.ProcessRequest</Source><Description>Unable to calculate international postage. No services available.
Invalid Country Name</Description><HelpFile/><HelpContext/></Error></Package></IntlRateResponse>
Send: API=IntlRate&XML=<?xml version="1.0" encoding="UTF-8"?><IntlRateRequest USERID="xxxxxxxxxxx"><Package ID="0"><Pounds>1</Pounds><Ounces>0</Ounces><MailType>Package</MailType><Country>Great Britain</Country></Package></IntlRateRequest>
Receive: <?xml version="1.0" encoding="UTF-8"?>
<IntlRateResponse><Package ID="0"><Error><Number>-2147218043</Number><Source>;IntlRateV2.ProcessRequest</Source><Description>Unable to calculate international postage. No services available.
Invalid Country Name</Description><HelpFile/><HelpContext/></Error></Package></IntlRateResponse>
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
I cannot find any info that would explain why this suddenly changed.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Error Getting Rates from USPS
It's a joke to try to find much on the USPS site, but I did find this:
INVALID CTRY CODE
If Class of Mail field in Detail Record 1 is IE, country code in Country Code field in Detail Record 1 must be a valid record in Country Code table.
When I Googled, I did find this for Ubercart
INSERT INTO {uc_countries} VALUES ('826', 'United Kingdom (Great Britain)', 'GB', 'GBR', 1)");
I have to apply the new USPS patch on some sites, so I'll do some testing.
INVALID CTRY CODE
If Class of Mail field in Detail Record 1 is IE, country code in Country Code field in Detail Record 1 must be a valid record in Country Code table.
When I Googled, I did find this for Ubercart
INSERT INTO {uc_countries} VALUES ('826', 'United Kingdom (Great Britain)', 'GB', 'GBR', 1)");
I have to apply the new USPS patch on some sites, so I'll do some testing.
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
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
Re: Error Getting Rates from USPS
Has this issue just started recently? If you are still using the older API, I would like to confirm that this is something new within the last few days. I've finding nothing on the USPS site or anything recent on google.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: Error Getting Rates from USPS
It should be a new glitch I think
Our last order to UK was back to June 30,2014
I'm running 7.0.7.14588
USPS is 7.3.14358.0
Thank you for looking into this case
Speedy
Our last order to UK was back to June 30,2014
I'm running 7.0.7.14588
USPS is 7.3.14358.0
Thank you for looking into this case
Speedy
Re: Error Getting Rates from USPS
We might have found the problem. To test, you will need to add a new country record. Use UK for the country code and use the name United Kingdom. Try the shipping calculator using the new country. It should work.
Now, here is the problem. You can't change the country code from GB to UK for the existing record if it has associated orders. That is why creating a new record is required. I think we can come up with a way to either update or remove the current country record, but I'll need the assistance of a developer.
I will try to update here tomorrow with a solution.
Now, here is the problem. You can't change the country code from GB to UK for the existing record if it has associated orders. That is why creating a new record is required. I think we can come up with a way to either update or remove the current country record, but I'll need the assistance of a developer.
I will try to update here tomorrow with a solution.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
That seems to have fixed it except there are 2 united kingdoms now. For now I will just change the name of the other one until you give the okay to delete or whatever.
EDIT- Actually I just went ahead and deleted the GB United Kingdom one so I hope that was okay lol.
EDIT- Actually I just went ahead and deleted the GB United Kingdom one so I hope that was okay lol.
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: Error Getting Rates from USPS
It woks, thank you Judy
I deleted the GB
Regards,
Speedy
I deleted the GB
Regards,
Speedy
Re: Error Getting Rates from USPS
In my case I have to keep the GB because that is what UPS uses. So now I have United Kingdom - USPS and United Kingdom - UPS.
Able Customer Since 1999 Currently Running on GOLD R12 SR1 and PCI Certified.
Re: Error Getting Rates from USPS
I have to wonder if this is something new that USPS changed and didn't bother to keep their customers notified. I believe that GB is still the correct country code. At least, it says so here: http://countrycode.org/uk
USPS is such a pain in the butt.
USPS is such a pain in the butt.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commander (CMDR)
- Posts: 121
- Joined: Sat Sep 23, 2006 1:00 pm
Re: Error Getting Rates from USPS
Me too, I think it is USPS issue!
This is not the first time or the second time they changed parameters things without a notice
Bad guy! But we got no choice and have to use its service
Speedy
This is not the first time or the second time they changed parameters things without a notice
Bad guy! But we got no choice and have to use its service
Speedy
Re: Error Getting Rates from USPS
Any ideas for troubleshooting my original problem? "The remote server returned an error: (403) Forbidden."
Re: Error Getting Rates from USPS
403 Forbidden HTTP status code is response to a request from a client for a web page or resource to indicate that the server can be reached and understood the request, but refuses to take any further action. Status code 403 responses are the result of the web server being configured to deny access, for some reason, to the requested resource by the client.
You should check to see if the web server is the problem first. You can also enable debug from the USPS configuration page and view the usps.log file in \app_data\logs\. It will give us information about what was sent to USPS and what was received to generate the rate quote.
You should check to see if the web server is the problem first. You can also enable debug from the USPS configuration page and view the usps.log file in \app_data\logs\. It will give us information about what was sent to USPS and what was received to generate the rate quote.
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
Found another country with a issue.. Uruguay
Any ideas what to change that to?
Any ideas what to change that to?
Re: Error Getting Rates from USPS
Hello Tim,
Can you provide a bit more information?
- what address in Uruguay?
- what services do you have selected?
- do you have the recent USPS patch installed for 7.0.7?
- what errors do you see in the USPS.log file?
All this will help tremendously when trying to figure out if this is another country code issue or something else.
Thanks!
Can you provide a bit more information?
- what address in Uruguay?
- what services do you have selected?
- do you have the recent USPS patch installed for 7.0.7?
- what errors do you see in the USPS.log file?
All this will help tremendously when trying to figure out if this is another country code issue or something else.
Thanks!
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Error Getting Rates from USPS
Nevermind.. I just got a E-mail yesterday saying it was not giving rates and he has ordered from us before.. I just tested it and it pulls rates so who knows...