check if the request have any error, fix #6