mudshark's post in "undefined" error when try to upload a product image was marked as the answer
I found in my case LARGE images (per HxW dimensions) caused this error.
mudshark's post in Shipping API error 80040b1a - Need detailed docs for UPS / USPS was marked as the answer
Error 80040b1a : Authorization failure.
Error is due to not being in "production" status at the USPS.
Call 800-344-7779 and ask to be moved to production status!