Incorrect extraction of error params in the failure callback