cover error case in request
Merge pull request #3 from allenfantasy/patch-1

Cover error case in request