Better handle the failure of URI embedded credentials