fix error trace in httpclient