Fix the bug that callbacks aren’t triggered when response failed