UPS Error 120051
Closed this issue · 4 comments
I'm not sure what is causing this one. The config has been populated with brand new UPS account/pass/key. Running ups tests produces:
UPS Error 120051: SurePost shipments for this UPS account can only be delivered to a PO Box/APO/FPO/DPO.
Any ideas?
The tests aren't the greatest and the functionality is limited :)
It looks like the test is trying to create a SurePost label and trying to send it to a non-PO Box. I don't know which test that is or if your account is setup to be able to create a SurePost label.
Maybe try modifying that test so it's not creating a SurePost label or send it to a PO Box?
This is code from "tests.py" modified to use the PO box. Same result.
I did a search for this error, and there was an official support case filed. No resolution unfortunately.
the tests.py are working on your side?
Code follows:
recipient_po_box = Address('Office of the Governor', 'PO BOX 001', 'Trenton', 'NJ', '08625-0001', 'US', phone='5122901212', email='ben@ordoro.com')
for r in ( recipient_po_box, ):
try:
validate = True
r.is_residence = True
response = u.label(intl_packages, shipper, r, SERVICES[0][0], PACKAGES[0][0], validate, [ 'test@mytrashmail.com '], create_commercial_invoice=True, customs_info=products)
status = response['status']
print 'Status: %s' % status,
for info in response['shipments']:
logging.info('tracking: %s, cost: %s' % (info['tracking_number'], info['cost']))
# _show_file(extension='.gif', data=info['label'])
# _show_file(extension='.pdf', data=response['international_document']['pdf'])
except UPSError as e:
logging.info(e)
INFO 2013-02-04 22:46:08,748 test.py:61] UPS Error 120051: SurePost shipments for this UPS account can only be delivered to a PO Box/APO/FPO/DPO.
I'm getting this same error code, even though I am not testing to a PO box at all. It's coming up every submission test I perform.