add debug for http request
fix bug