Debug param print prettier
Reject on API error