Guest Posted June 19, 2003 Posted June 19, 2003 Well, after a day of less than stellar orders, I did some testing and found that UPS is not sending quote information on some requests. About 85% of the time, I'm getting correct quote information, the rest of the time I'm getting an error response from UPS. Here is the error code from OS Commerce. I'll dig in further below. error /using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=4&13 _product=GND&14_origCountry=US&15_origPostal=91609&19_destPostal=23707&22_destCountry=US&23_weight=1.357&47_rate_chart=Customer+Coun ter&48_container=00&49_residential=1 If I go to the URL directly: http://www.ups.com/using/services/rave/qco...9_residential=1 I get this (when erroring): UPSOnLine5%Remote host and/or port not found within config file%6920 And when it's working (about 50% of the time during the writing of this post): UPSOnLine4%1DM%91609%US%23707%US%108%2%62.57%0.00%62.57% 8:30 A.M.% 4%1DA%91609%US%23707%US%108%2%33.65%0.00%33.65%10:30 A.M.% 4%1DP%91609%US%23707%US%138%2%31.36%0.00%31.36%End of Day% 4%2DA%91609%US%23707%US%208%2%14.57%0.00%14.57%End of Day% 4%3DS%91609%US%23707%US%308%2%12.33%0.00%12.33%End of Day% 4%GND%91609%US%23707%US%008%2%8.07%0.00%8.07%End of Day% Looking at the source code I see the latter return value is what the program is expecting. However, with a 50% error rate getting the former response code from the UPS server, my store is essentially non-functional 50% of the time! qcostcgi.cgi seems to be degrading HEAVILY in it's reliability. Reload this URL 40 or 50 times you'll see that it errors out A LOT: http://www.ups.com/using/services/rave/qco...9_residential=1 I've read this is an older and much less supported mechanism for shipping quotes. I can't underline how important it is for either UPS to fix this error, or for the community to work to make available a better UPS gateway using newer UPS online tools. In the meantime, what should I/we do? Andrew Edmond [/url]
MikeMike Posted June 19, 2003 Posted June 19, 2003 I also have problems with UPS today and it have probably been overnight since I haven't got any orders. I get: An error occured with the UPS shipping calculations. If you prefer to use UPS as your shipping method, please contact the store owner. when checking out. Any one know what the problem is? I am running a dec 2002 snapshot. Regards Mike
Irata0062 Posted June 19, 2003 Posted June 19, 2003 Glad I'm not the only one Mike, I'm getting the same error.
Guest Posted June 19, 2003 Posted June 19, 2003 I'm experiencing it also. UPS knows nothing :( What now?
Guest Posted June 19, 2003 Posted June 19, 2003 I should note that I do see this error pop up along with the fact that rates can't be obtained: Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/tfs/public_html/catalog/includes/classes/http_client.php on line 330 Warning: fsockopen() [function.fsockopen]: unable to connect to www.ups.com:80 in /home/tfs/public_html/catalog/includes/classes/http_client.php on line 330
MikeMike Posted June 19, 2003 Posted June 19, 2003 http://www.oscommerce.com/forums/viewtopic.php?t=41243 I found this thread and changed from STORE to SHIPPING in ups.php and in the database. Now I am getting An error occured with the UPS shipping calculations.The requested service is unavailable between the selected locations. If you prefer to use UPS as your shipping method, please contact the store owner.
MikeMike Posted June 19, 2003 Posted June 19, 2003 I have a couple of stores from before the checkout process was changed in Nov. 2002 and they do not have this problem.
MikeMike Posted June 19, 2003 Posted June 19, 2003 oooops.... please disregard my message above. Not correct.
Guest Posted June 19, 2003 Posted June 19, 2003 I've temporarily switched over to table rates so as not to lose another half day of business....maybe that will help some of you as well.
Guest Posted June 19, 2003 Posted June 19, 2003 Please see the Contribution I made last night to fix this problem: http://www.oscommerce.com/forums/viewtopic.php?t=48404 Andrew
MikeMike Posted June 19, 2003 Posted June 19, 2003 Weird... If I choose the order shipped next or 2nd day there are no problems. 3day select and ground gives me errors.
MikeMike Posted June 19, 2003 Posted June 19, 2003 Now everything is working again... Andrew, I found your post and tried your code instead of my ups.php ver 1.47 and I couldn't get it to work. I did put in the password, username and accesskey. Anything else I should have changed?
Guest Posted June 19, 2003 Posted June 19, 2003 Still not working for me. Mikemike, did it work for you without making any changes?
Millie Posted June 19, 2003 Posted June 19, 2003 Nero posted a xml rate hack earlier today. Has anybody tried that yet? http://www.oscommerce.com/forums/viewtopic.php...4&highlight=ups
MikeMike Posted June 19, 2003 Posted June 19, 2003 I changed the bold part below and made the same change in the DB configuration table. $country_name = tep_get_countries(STORE_COUNTRY, true); $this->_upsOrigin([b]SHIPPING_ORIGIN_ZIP[/b], $country_name['countries_iso_code_2']); $this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']); $this->_upsRate(MODULE_SHIPPING_UPS_PICKUP); $this->_upsContainer(MODULE_SHIPPING_UPS_PACKAGE); I did try this change earlier today though, without any luck. :?
wizardsandwars Posted June 19, 2003 Posted June 19, 2003 I did see some intermittant interuptions in UPS quotes earlier today, however, it seems to be back to 100% now. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
dreamscape Posted June 23, 2003 Posted June 23, 2003 UPS is doing away with the CGI method... OSC should be using the XML method anyways... they've had plenty of time to switch. The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke
ocularmagic Posted June 23, 2003 Posted June 23, 2003 I'm personally going to be using a static method to get the rates. I'm going to download the rates whenever they are released and then let the shipping module calculate the rates based on the info in those files. At least this way, if their site goes down, or they have problems, I won't have to worry about it. I just have to worry about them changing the format of the rate files. If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
Recommended Posts
Archived
This topic is now archived and is closed to further replies.